How are you?
I meet some trouble when switching devices.
When switching device,
First, I prepare the audioDeviceSetup struct.
for inputdevicename and outputdevicename.
I use directsound and asio devices. Is any requirement for this input / output pairs? for example, if I use Asio input device, shall I use directSound output device at the same time? or should use the same physical device as input and output ?
Then I use setAudioDeviceSetup() to set current device.
const String AudioDeviceManager::setAudioDeviceSetup (const AudioDeviceSetup& newSetup, const bool treatAsChosenDevice)
I got error return from this function. return
"No such device: " + newInputDeviceName;
I got the devicename by using AudioIODeviceType::getDeviceNames().
So the devicename should be right.
I am not able to figure it out, and could you please give me some ideas?