mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Fixed a deadlock in CoreAudioOut when resetting the sample rate mid-stream.
This commit is contained in:
parent
8242eda806
commit
e65d56ac8c
@ -113,7 +113,9 @@ int CoreAudioOut::Play(IBuffer *buffer, IBufferProvider *provider) {
|
||||
this->audioFormat.mBytesPerFrame = (this->audioFormat.mBitsPerChannel / 8) * this->audioFormat.mChannelsPerFrame;
|
||||
this->audioFormat.mBytesPerPacket = this->audioFormat.mBytesPerFrame * this->audioFormat.mFramesPerPacket;
|
||||
|
||||
lock.unlock();
|
||||
this->Stop();
|
||||
lock.lock();
|
||||
|
||||
result = AudioQueueNewOutput(
|
||||
&this->audioFormat,
|
||||
|
Loading…
Reference in New Issue
Block a user