jassert in ASIOAudioIODevice::createDevice()


#1

When I’m calling AudioDeviceManager::initialise(0,2,xml,true) with the xml containing as last selected soundcard my Delta1010LT, I get an assertion in ASIOAudioIODevice::createDevice(). When i call initialise(2,2,xml,true), then everything is fine.

here’s where the assertion happens (1st line of initialise()): jassert (inputDeviceName == outputDeviceName);

Why is that?


#2

It’s just in there to avoid trying to open two different devices at the same time. I guess in your case it’s getting triggered because one of your devices is an empty string, so maybe this would be a better test:

jassert (inputDeviceName == outputDeviceName || outputDeviceName.isEmpty() || inputDeviceName.isEmpty());

?