mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 07:40:36 +00:00
Fix iOS audio driver attempting to start output too early
This commit is contained in:
parent
4631a617e5
commit
b4fd9d1f38
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user