Browse Source

CoreAudio: No longer consider a device stopping to be a failure

The device may need to stop because it is about to restart with new
settings.

e.g. When the DemoRunner is started while the microphone is set to
44.1KHz and the speakers are set to 48KHz in Audio MIDI Settings, one of
the devices must be restarted in order for the AudioDeviceCombiner to
work. In this situation, stopping one device shouldn't count as an
error, because the device will be started again with new, compatible,
settings.
v7.0.12
reuk 1 year ago
parent
commit
5d0584059c
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_audio_devices/native/juce_CoreAudio_mac.cpp

+ 2
- 1
modules/juce_audio_devices/native/juce_CoreAudio_mac.cpp View File

@@ -2065,7 +2065,8 @@ private:
if (target != nullptr) if (target != nullptr)
target->audioDeviceStopped(); target->audioDeviceStopped();
error = true;
// The audio device may stop because it's about to be restarted with new settings.
// Stopping the device doesn't necessarily count as an error.
} }
void audioDeviceError (const String& errorMessage) override void audioDeviceError (const String& errorMessage) override


Loading…
Cancel
Save