X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSounds.cpp;h=c82f42ed3a4a58a5ccb10b5fcd3dfe29eba50cde;hb=14a1f983de1723c52b252c161997651cecbef2e1;hp=9bf927befb0ecb9af377938be83fa279b87753d7;hpb=617a36f729718c59c2f886fd4a1d145388e7c8bc;p=lugaru.git diff --git a/Source/Sounds.cpp b/Source/Sounds.cpp index 9bf927b..c82f42e 100644 --- a/Source/Sounds.cpp +++ b/Source/Sounds.cpp @@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct OPENAL_SAMPLE *samp[sounds_count]; +int footstepsound, footstepsound2, footstepsound3, footstepsound4; + static const char *sound_data[sounds_count] = { #define DECLARE_SOUND(id, filename) filename, #include "Sounds.def" @@ -58,7 +60,13 @@ void loadAllSounds() snd_mode(i), 0, 0); } + footstepsound = footstepsn1; + footstepsound2 = footstepsn2; + footstepsound3 = footstepst1; + footstepsound4 = footstepst2; // Huh? // OPENAL_Sample_SetMode(samp[whooshsound], OPENAL_LOOP_NORMAL); + for (int i = stream_firesound; i <= stream_music3; i++) + OPENAL_Stream_SetMode(samp[i], OPENAL_LOOP_NORMAL); }