1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CoreAudio: Forward errors to callback during device initialisation

This commit is contained in:
attila 2022-08-18 18:38:10 +02:00
parent 5b355f6373
commit 5ec536f13f
2 changed files with 70 additions and 4 deletions

View file

@ -720,6 +720,12 @@ String AudioDeviceManager::setAudioDeviceSetup (const AudioDeviceSetup& newSetup
currentDeviceType = currentAudioDevice->getTypeName();
currentAudioDevice->start (callbackHandler.get());
error = currentAudioDevice->getLastError();
}
if (error.isEmpty())
{
updateCurrentSetup();
for (int i = 0; i < availableDeviceTypes.size(); ++i)