Skip to content

Commit

Permalink
Merge pull request #13383 from fwcd/disable-audiounit-in-process-ios
Browse files Browse the repository at this point in the history
AudioUnitManager: Disable unavailable in-process instantiation on iOS
  • Loading branch information
daschuer authored Jun 17, 2024
2 parents 519e346 + cddf731 commit c6a1993
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/effects/backends/audiounit/audiounitmanager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@

void AudioUnitManager::instantiateAudioUnitAsync(
AVAudioUnitComponent* _Nonnull component, bool inProcess) {
auto options = inProcess ? kAudioComponentInstantiation_LoadInProcess
: kAudioComponentInstantiation_LoadOutOfProcess;
auto options = kAudioComponentInstantiation_LoadOutOfProcess;

if (inProcess) {
#ifdef Q_OS_IOS
qWarning() << "In-process Audio Unit instantiation is unavailable on "
"iOS, using out-of-process instantiation instead";
#else
options = kAudioComponentInstantiation_LoadInProcess;
#endif
}

// Instantiate the audio unit asynchronously.
qDebug() << "Instantiating Audio Unit" << m_name << "asynchronously";
Expand Down

0 comments on commit c6a1993

Please sign in to comment.