Skip to content

Commit

Permalink
Bug Fix: Do not process format change on stop
Browse files Browse the repository at this point in the history
We should not be processing a potential playback restart when the chain
is being torn down for shutdown.

Signed-off-by: Christopher Snowhill <[email protected]>
  • Loading branch information
kode54 committed Feb 15, 2025
1 parent 923179c commit abf77a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Audio/Chain/OutputNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ - (uint32_t)deviceChannelConfig {
}

- (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
Expand Down

0 comments on commit abf77a7

Please sign in to comment.