]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sounds.cpp
Slightly squash unpack stuff
[lugaru.git] / Source / Sounds.cpp
index 9bf927befb0ecb9af377938be83fa279b87753d7..c82f42ed3a4a58a5ccb10b5fcd3dfe29eba50cde 100644 (file)
@@ -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);
 }