]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sounds.cpp
removing a debug cout
[lugaru.git] / Source / Sounds.cpp
index 96e18fd03157752e700489a6df1b984cf9a43b91..f5c33988c3a630759bdf087bbdaf79f94b08e0ab 100644 (file)
@@ -69,7 +69,7 @@ void loadAllSounds()
   footstepsound4 = footstepst2;
   // Huh?
   // OPENAL_Sample_SetMode(samp[whooshsound], OPENAL_LOOP_NORMAL);
-  for (int i = stream_firesound; i <= stream_music3; i++)
+  for (int i = stream_firesound; i <= stream_menutheme; i++)
     OPENAL_Stream_SetMode(samp[i], OPENAL_LOOP_NORMAL);
 }
 
@@ -107,3 +107,15 @@ emit_stream_np(int soundid, float vol)
   OPENAL_SetPaused (channels[soundid], false);
 }
 
+void
+resume_stream(int soundid)
+{
+  OPENAL_SetPaused (channels[soundid], false);
+}
+
+void
+pause_sound(int soundid)
+{
+  OPENAL_SetPaused (channels[soundid], true);
+}
+