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
660d2b25be
commit
be0ccaffa2
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig {
|
- (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig {
|
||||||
|
if(!shouldContinue) return;
|
||||||
|
|
||||||
format = *f;
|
format = *f;
|
||||||
config = channelConfig;
|
config = channelConfig;
|
||||||
// Calculate a ratio and add to double(seconds) instead, as format may change
|
// Calculate a ratio and add to double(seconds) instead, as format may change
|
||||||
|
|
Loading…
Reference in a new issue