Bug Fix: Wait for output to shut down first

In case stop function called on another thread, wait for it to complete
first.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-01 15:18:10 -08:00
parent 62010394ef
commit 68076ec855

View file

@ -825,6 +825,10 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
- (void)dealloc { - (void)dealloc {
[self stop]; [self stop];
// In case stop called on another thread first
while(!stopCompleted) {
usleep(500);
}
} }
- (void)pause { - (void)pause {