Merge branch 'bugfix/soundstream_contention'
This commit is contained in:
commit
274b9331f0
@ -274,6 +274,7 @@ void SoundStream::streamData()
|
||||
m_isStreaming = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Create the buffers
|
||||
alCheck(alGenBuffers(BufferCount, m_buffers));
|
||||
@ -286,6 +287,9 @@ void SoundStream::streamData()
|
||||
// Play the sound
|
||||
alCheck(alSourcePlay(m_source));
|
||||
|
||||
{
|
||||
Lock lock(m_threadMutex);
|
||||
|
||||
// Check if the thread was launched Paused
|
||||
if (m_threadStartState == Paused)
|
||||
alCheck(alSourcePause(m_source));
|
||||
|
Loading…
Reference in New Issue
Block a user