]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sounds.cpp
More PlaySoundEx eradication
[lugaru.git] / Source / Sounds.cpp
index 38080a67f572280525641c2c96e5f50d6643656c..d0fa7f49fcebba93611289a854d886918b0295d9 100644 (file)
@@ -82,6 +82,14 @@ emit_sound_at(int soundid, const XYZ &pos, float vol)
   OPENAL_SetPaused (channels[soundid], false);
 }
 
+void
+emit_sound_np(int soundid, float vol)
+{
+  PlaySoundEx (soundid, samp[soundid], NULL, true);
+  OPENAL_SetVolume (channels[soundid], vol);
+  OPENAL_SetPaused (channels[soundid], false);
+}
+
 void
 emit_stream_at(int soundid, const XYZ &pos, float vol)
 {