Skip to content

Commit 2010768

Browse files
committed
AudioUnitManager: Call dispatch_group_leave on instantiation error
When AudioComponentInstantiate returns an error, the callback returned early without calling dispatch_group_leave. This caused waitForAudioUnit to block for the full 2s timeout on every failing AU, even though the error was already known.
1 parent 8484d04 commit 2010768

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/effects/backends/audiounit/audiounitmanager.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
qWarning() << "Could not instantiate Audio Unit"
9595
<< pManager->m_name << ":" << error
9696
<< "(Check https://www.osstatus.com for a description)";
97+
dispatch_group_leave(pManager->m_instantiationGroup);
9798
return;
9899
}
99100

0 commit comments

Comments
 (0)