Fixed: Looping sound or crash during teleport with OpenAL driver

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-02-22 18:57:56 +02:00
parent 70e40339a1
commit 4cbed9f957

View file

@ -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)