Bug in juce_AudioDeviceManager.cpp?


#1

Revision 689 — juce_AudioDeviceManager.cpp:381

   ...
    if (currentSetup.inputDeviceName != newInputDeviceName
         || currentSetup.inputDeviceName != newOutputDeviceName
         || currentAudioDevice == 0)
   ...

Note that the second statement compares the current input name to the new output name. If I understand what should be happening here, shouldn’t it read

   ...
    if (currentSetup.inputDeviceName != newInputDeviceName
         || currentSetup.outputDeviceName != newOutputDeviceName
         || currentAudioDevice == 0)
   ...

#2

Ah, well done for spotting my deliberate mistake. I sometimes add little things like that, just to make sure you’re all paying attention…