Merge pull request #98305 from cadence-s/fix-ios-audio-driver-error

Fix iOS audio driver attempting to start output too early
This commit is contained in:
Clay John 2024-10-24 19:40:34 -07:00 committed by GitHub
commit a1c7998d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,7 +250,7 @@ OSStatus AudioDriverCoreAudio::input_callback(void *inRefCon,
}
void AudioDriverCoreAudio::start() {
if (!active) {
if (!active && audio_unit != nullptr) {
OSStatus result = AudioOutputUnitStart(audio_unit);
if (result != noErr) {
ERR_PRINT("AudioOutputUnitStart failed, code: " + itos(result));