1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

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.
This commit is contained in:
reuk 2024-03-05 17:24:47 +00:00
parent b6a06ebf24
commit 5d0584059c
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -2065,7 +2065,8 @@ private:
if (target != nullptr)
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