X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.cpp;h=0751da011ff12a886863ecb6c0aec0dd0dea8f36;hb=a6c3ac9511035a2448dfe40b1728d9f5ab2e8724;hp=d68ee1154e7320edde2216daa4e90067d06f0871;hpb=71128f2976d474e055fdc68887d9403e9b5e3fc6;p=lugaru.git diff --git a/Source/Game.cpp b/Source/Game.cpp index d68ee11..0751da0 100644 --- a/Source/Game.cpp +++ b/Source/Game.cpp @@ -218,12 +218,7 @@ typedef struct { } params_thread; void Game::fireSound(int sound) { - float gLoc[3]={0,0,0}; - float vel[3]={0,0,0}; - PlaySoundEx( sound, samp[sound], NULL, true); - OPENAL_3D_SetAttributes(channels[sound], gLoc, vel); - OPENAL_SetVolume(channels[sound], 256); - OPENAL_SetPaused(channels[sound], false); + emit_sound_at(sound); } void Game::inputText(char* str, int* charselected, int* nb_chars) {