mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-06 12:39:54 +00:00
A couple of quick fixes to avoid deadlocks during playback.
This commit is contained in:
parent
b32241ea8a
commit
a822298c61
@ -194,7 +194,7 @@ bool WaveOut::Shutdown(void)
|
||||
{
|
||||
Close();
|
||||
|
||||
boost::mutex::scoped_lock lock(this->audioMutex);
|
||||
// boost::mutex::scoped_lock lock(this->audioMutex);
|
||||
|
||||
if(this->audioThread)
|
||||
{
|
||||
@ -286,10 +286,10 @@ bool WaveOut::SetFormat(unsigned long SampleRate, unsigned long Channels)
|
||||
//
|
||||
bool WaveOut::Start(void)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(this->audioMutex);
|
||||
|
||||
if(!Open())
|
||||
return(false);
|
||||
|
||||
boost::mutex::scoped_lock lock(this->audioMutex);
|
||||
|
||||
while(m_QueuedBuffers) // Handles pause/play?
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user