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
00009
00010
00011
00012 #ifdef USE_FMOD
00013 cSoundSystem *CreateSoundSystemFmod(const int frequency);
00014 #endif
00015 #ifdef USE_OPENAL
00016
00017 cSoundSystem *CreateOpenALSoundSystem(int frequency);
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
00026 if(name == 0 || strcmp(name,"any") == 0 || strcmp(name,"openal") == 0)return CreateOpenALSoundSystem(frequency);
00027 #endif
00028 return 0;
00029 }
00030
00031 };