Core Audio: Fix pausing glitches

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-09 14:43:06 -07:00
parent e64c279e45
commit f8ee7e5e46

View file

@ -169,12 +169,14 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
rendered = NO;
}
#if 0
if(faded && !paused) {
resetting = YES;
[self pause];
started = NO;
resetting = NO;
}
#endif
if(!started && !paused) {
// Prevent this call from hanging when used in this thread, when buffer may be empty