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:
parent
b6a06ebf24
commit
5d0584059c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue