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:
parent
5b355f6373
commit
5ec536f13f
2 changed files with 70 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue