mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 21:14:08 +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.mBytesPerFrame = (this->audioFormat.mBitsPerChannel / 8) * this->audioFormat.mChannelsPerFrame;
|
||||||
this->audioFormat.mBytesPerPacket = this->audioFormat.mBytesPerFrame * this->audioFormat.mFramesPerPacket;
|
this->audioFormat.mBytesPerPacket = this->audioFormat.mBytesPerFrame * this->audioFormat.mFramesPerPacket;
|
||||||
|
|
||||||
|
lock.unlock();
|
||||||
this->Stop();
|
this->Stop();
|
||||||
|
lock.lock();
|
||||||
|
|
||||||
result = AudioQueueNewOutput(
|
result = AudioQueueNewOutput(
|
||||||
&this->audioFormat,
|
&this->audioFormat,
|
||||||
|
Loading…
Reference in New Issue
Block a user