Fixed: Looping sound or crash during teleport with OpenAL driver
--HG-- branch : develop
This commit is contained in:
parent
70e40339a1
commit
4cbed9f957
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue