]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sounds.cpp
Remove some extra declarations of "channels"
[lugaru.git] / Source / Sounds.cpp
index d0fa7f49fcebba93611289a854d886918b0295d9..c85355356d23051e1e0bd8299decb0234871efa5 100644 (file)
@@ -99,3 +99,23 @@ emit_stream_at(int soundid, const XYZ &pos, float vol)
   OPENAL_SetPaused (channels[soundid], false);
 }
 
+void
+emit_stream_np(int soundid, float vol)
+{
+  PlayStreamEx (soundid, samp[soundid], NULL, true);
+  OPENAL_SetVolume (channels[soundid], 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);
+}
+