]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
Remove some extra declarations of "channels"
[lugaru.git] / Source / Game.cpp
index d68ee1154e7320edde2216daa4e90067d06f0871..b3289e29f489201d4d83a94f0e5f89105172cd2e 100644 (file)
@@ -3,10 +3,6 @@
 #include "SDL_thread.h"
 
 extern int mainmenu;
-extern int channels[100];
-extern "C" void PlaySoundEx(int channel, OPENAL_SAMPLE *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused);
-
-
 
 Game::Game()
 {
@@ -218,12 +214,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) {