Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibSampleData.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 1999-2001 Bruce W. Forsberg
00003  *
00004  *   This library is free software; you can redistribute it and/or
00005  *   modify it under the terms of the GNU Lesser General Public
00006  *   License as published by the Free Software Foundation; either
00007  *   version 2.1 of the License, or any later version.
00008  *
00009  *   This library is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *   Lesser General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU Lesser General Public
00015  *   License along with this library; if not, write to the Free Software
00016  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00017  *
00018  *   Bruce Forsberg  forsberg@tns.net
00019  *
00020  */
00021 
00022 
00023 #ifndef _AFLIBSAMPLEDATA_H_
00024 #define _AFLIBSAMPLEDATA_H_
00025 
00026 class aflibAudio;
00027 
00028 class aflibSampleData {
00029 
00030 public:
00031 
00032    aflibSampleData(const aflibAudio * file);
00033 
00034    ~aflibSampleData();
00035 
00036    void
00037    setOutputRange(
00038       int  min,
00039       int  max);
00040 
00041    void
00042    setMaxMinMode(bool mode);
00043 
00044    void
00045    setNumSamplePoints(
00046       unsigned int points);
00047 
00048    void
00049    setParametersSamples(
00050       long long start_sample,
00051       long long stop_sample);
00052 
00053    void
00054    setParametersSeconds(
00055       double start_seconds,
00056       double stop_seconds);
00057 
00058    void
00059    setChannels(
00060       int num_channels,
00061       int * array);
00062 
00063    int
00064    getDelta() const;
00065 
00066    bool
00067    process(
00068       int * array);
00069 
00070 private:
00071 
00072    aflibSampleData();
00073 
00074    aflibSampleData(const aflibSampleData& op);
00075 
00076    const aflibSampleData&
00077    operator=(const aflibSampleData& op);
00078 
00079 
00080 const aflibAudio * _file;
00081 int *         _channel_array;
00082 
00083 bool          _minmax_mode;
00084 int           _output_max;
00085 int           _output_min;
00086 int           _a0;
00087 int           _a1;
00088 int           _delta;
00089 unsigned int  _num_channels;
00090 unsigned int  _num_points;
00091 long long     _start_sample;
00092 long long     _stop_sample;
00093 
00094 };
00095 
00096 
00097 #endif

Generated at Tue Aug 7 22:18:06 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001