00001 00007 00008 #include "KX_BlenderAudioDevice.h" 00009 /* The Blender sound module: */ 00010 // #include "sound.h" 00011 #include "KX_GameObject.h" 00012 #include <iostream> 00013 00014 #include "BL_Sound.h" 00015 00016 00017 #undef PlaySound 00018 void KX_BlenderAudioDevice::PlaySound(void*blob, void* sounddata,float obmatrix[4][4],bool looping) 00019 { 00020 00021 BL_PlaySound(blob,sounddata,obmatrix,looping); 00022 } 00023 00024 00025 00026 #undef EndSound 00027 void KX_BlenderAudioDevice::EndSound(void*blob, void* sounddata) 00028 { 00029 BL_EndSound( blob,sounddata); 00030 } 00031 00032 #undef FindSound 00033 void *KX_BlenderAudioDevice::FindSound(char *soundName) 00034 { 00035 void *soundObject; 00036 soundObject = BL_FindSound(soundName); 00037 return soundObject; 00038 } 00039 00040 #undef FindSoundName 00041 char *KX_BlenderAudioDevice::FindSoundName(void *sounddata) 00042 { 00043 return BL_FindSoundName(sounddata); 00044 } 00045 00046 // eof 00047