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