make sure that sound working thread is actually killed on stopping the audio interface
This commit is contained in:
parent
8bbc9adaa3
commit
73f408e401
1 changed files with 1046 additions and 1039 deletions
|
@ -388,6 +388,13 @@ void CSound::Stop()
|
|||
|
||||
// call base class
|
||||
CSoundBase::Stop();
|
||||
|
||||
// make sure the working thread is actually done
|
||||
// (by checking the locked state)
|
||||
if ( ASIOMutex.tryLock ( 5000 ) )
|
||||
{
|
||||
ASIOMutex.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
CSound::CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* arg ), void* arg ) :
|
||||
|
|
Loading…
Reference in a new issue