C:/Documents and Settings/Alessandro/Documenti/Programmazione/CodeBlocks/AudioDrome/include/AudioDrome/AudioDrome.h

00001 /***************************************************/
00013 /***************************************************/
00014 
00015 #ifndef AUDIODROME_H
00016 #define AUDIODROME_H
00017 
00018 #ifdef WIN32
00019 #include <windows.h>
00020 #endif
00021 
00022 #ifndef M_PI
00023 #define M_PI        3.14159265358979323846
00024 #endif
00025 
00026 #include <cassert>
00027 //#define NODEBUG
00028 
00029 #define MASK 0x0FFFFFFL
00030 
00031 const float SR = 44100.0f;
00032 const unsigned int LENGTH = 4096;
00033 const unsigned int OVERLAP = 600;
00034 const unsigned int P3  = 10; 
00035 
00036 enum
00037 {
00038     LEFT, RIGTH, STEREO
00039 };
00040 
00041 typedef unsigned short INTERPOLATION;
00042 typedef unsigned short UINT16;
00043 typedef unsigned int UINT32;
00044 typedef signed short SINT16;
00045 typedef signed int SINT32;
00046 typedef float FLOAT32;
00047 typedef double FLOAT64;
00048 
00049 static const INTERPOLATION DISABLE = 1; 
00050 static const INTERPOLATION LINEAR = 2; 
00051 static const INTERPOLATION CUBIC = 3; 
00053 //int Callback (  const void *inputBuffer,
00054 //                void *outputBuffer,
00055 //                unsigned long framesPerBuffer,
00056 //                const PaStreamCallbackTimeInfo* timeInfo,
00057 //                PaStreamCallbackFlags statusFlags,
00058 //                void *userData );
00059 
00060 
00061 class AudioDrome
00062 {
00063 public:
00065 
00069     AudioDrome (const float &sr=44100);
00070 
00072     virtual ~AudioDrome();
00073 
00074     bool getEndianType ();
00075 
00076     void printEndianType ();
00077 
00079     void setSR (const float &sr);
00080 
00082     float getSR () const;
00083 
00085     float getNyquist () const;
00086 
00087 protected:
00088     float _sr;
00089     float _nyquist;
00090 };
00091 #endif

Generato il Tue Dec 26 14:42:31 2006 per AudioDrome da  doxygen 1.4.7