lugre_sound.cpp

Go to the documentation of this file.
00001 #include "lugre_prefix.h"
00002 #include "lugre_sound.h"
00003 
00004 
00005 namespace Lugre {
00006     
00007 
00008 //defined using scons and -D flags  
00009 //define USE_FMOD           1
00010 //#define USE_OPENAL            1
00011 
00012 #ifdef USE_FMOD
00013     cSoundSystem *CreateSoundSystemFmod(const int frequency);
00014 #endif
00015 #ifdef USE_OPENAL
00016     //cSoundSystem *CreateSoundSystemOpenAl(const int frequency); // old, obsolete code
00017     cSoundSystem *CreateOpenALSoundSystem(int frequency); // by unavowed, see src/lugre_sound_openal2.cpp
00018 #endif
00019 
00020 cSoundSystem *CreateSoundSystem(const char *name, const int frequency){
00021     #ifdef USE_FMOD
00022         if(name == 0 || strcmp(name,"any") == 0 || strcmp(name,"fmod") == 0)return CreateSoundSystemFmod(frequency);
00023     #endif
00024     #ifdef USE_OPENAL
00025         //if(name == 0 || strcmp(name,"any") == 0 || strcmp(name,"openal") == 0)return CreateSoundSystemOpenAl(frequency); // old
00026         if(name == 0 || strcmp(name,"any") == 0 || strcmp(name,"openal") == 0)return CreateOpenALSoundSystem(frequency); // unavowed
00027     #endif
00028     return 0;
00029 }
00030 
00031 };

Generated on Wed May 23 06:00:15 2012 for cpp by  doxygen 1.5.6