X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSounds.cpp;h=96e18fd03157752e700489a6df1b984cf9a43b91;hb=443dd85b562cc9b1584297e0eae4206d64189932;hp=d0fa7f49fcebba93611289a854d886918b0295d9;hpb=82199298cd5b20ee13a9e502106721525d0974f1;p=lugaru.git diff --git a/Source/Sounds.cpp b/Source/Sounds.cpp index d0fa7f4..96e18fd 100644 --- a/Source/Sounds.cpp +++ b/Source/Sounds.cpp @@ -99,3 +99,11 @@ 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); +} +