Bug Fix: Do not process format change on stop
We should not be processing a potential playback restart when the chain is being torn down for shutdown. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
923179c4eb
commit
abf77a70d2
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,8 @@
|
|||
}
|
||||
|
||||
- (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig {
|
||||
if(!shouldContinue) return;
|
||||
|
||||
format = *f;
|
||||
config = channelConfig;
|
||||
// Calculate a ratio and add to double(seconds) instead, as format may change
|
||||
|
|
Loading…
Reference in a new issue