00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _GEDDEI_GLOBALS_H
00012 #define _GEDDEI_GLOBALS_H
00013
00014 #include <qthread.h>
00015 #include <qstringlist.h>
00016
00017 namespace Geddei
00018 {
00019
00020 enum { FFTW = 1, GAT = 2, LIBSNDFILE = 4, ALSA = 8, LIBVORBISFILE = 16, LIBMAD = 32 };
00021 enum MultiplicityType { NotMulti = 0, In = 1, Out = 2, InOut = 3, Const = 4, InConst = 5, OutConst = 6, InOutConst = 7 };
00022 static const uint Undefined = (uint)-1;
00023
00024 void sleep(const uint secs);
00025 void usleep(const uint usecs);
00026
00027 inline const uint ceillog2(const uint i)
00028 {
00029 for(uint l = 0; ; l++)
00030 if(i <= uint(1 << l))
00031 return l;
00032 }
00033
00034 const char *getVersion();
00035 const uint getConfig();
00036 const QStringList getPaths();
00037
00038 }
00039
00040 #endif