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:
parent
62010394ef
commit
68076ec855
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue