From 4cbed9f9570f7beb059768e616b773d51789f918 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 22 Feb 2019 18:57:56 +0200 Subject: [PATCH] Fixed: Looping sound or crash during teleport with OpenAL driver --HG-- branch : develop --- code/nel/src/sound/driver/openal/source_al.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/nel/src/sound/driver/openal/source_al.cpp b/code/nel/src/sound/driver/openal/source_al.cpp index 439da980d..3cc0dd328 100644 --- a/code/nel/src/sound/driver/openal/source_al.cpp +++ b/code/nel/src/sound/driver/openal/source_al.cpp @@ -121,6 +121,11 @@ void CSourceAL::setStreaming(bool streaming) alTestError(); _Buffer = NULL; _IsStreaming = streaming; + if (_IsStreaming) + { + // make sure looping is disabled on OpenAL side + setLooping(false); + } } /* Set the buffer that will be played (no streaming)