Hi, jules
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.
Yes, you can’t mix and match different device APIs! The device names obviously both have to be from the list given by the currently selected type, (maybe I need to make that more clear in the help)
Hi, jules
Thanks!
We can not mix devices with different type. Is it system restriction or juce lib’s restriction .
For example, I attach a device(ASIO) to computer as recording input, and want use speaker(directSound)as output from computer.
juce lib does not support it. is that correct?
That’s correct. It’s not a “restriction” though - it’s because I haven’t attempted to write something to solve the almost impossible task of running two unsynced devices and making them appear as a single, synced device…
Hi, jules
How are you?
If I choose ASIO toneport ux1 as input device, which device shall I set to output Device?
I set ASIO toneport ux1 as output device and it is not working.
What shall I set the output device for ASIO device?
I use types[1]->hasSeparateInputsAndOutputs() as condition to set up output device.
if it is true , I set the audioDeviceSetup.outputDeviceName = audioDeviceSetup.inputDeviceName.
if it is false, I pick up a outputDevice from the same type.
Is this right? I still get the error that can not set the outputDevice.