X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSounds.cpp;h=38080a67f572280525641c2c96e5f50d6643656c;hb=42bdd021a9276a99a9ae09722d02e36bd3da8e77;hp=9cedebc02350f897b86b842352221010c3df941c;hpb=ac2329020de30416484a59f41e1156439d143b87;p=lugaru.git diff --git a/Source/Sounds.cpp b/Source/Sounds.cpp index 9cedebc..38080a6 100644 --- a/Source/Sounds.cpp +++ b/Source/Sounds.cpp @@ -82,3 +82,12 @@ emit_sound_at(int soundid, const XYZ &pos, float vol) OPENAL_SetPaused (channels[soundid], false); } +void +emit_stream_at(int soundid, const XYZ &pos, float vol) +{ + PlayStreamEx (soundid, samp[soundid], NULL, true); + OPENAL_3D_SetAttributes_ (channels[soundid], pos, NULL); + OPENAL_SetVolume (channels[soundid], vol); + OPENAL_SetPaused (channels[soundid], false); +} +