Hi,
I can display the names of the device types associated with a given platform, and the names of the input and output devices associated with each device type, but I don't know how to display the names of the input and output channels associated with each device.
Can you help?
Thanks.
jules
September 1, 2015, 6:39pm
2
You need to open the devices and ask them for their channel list.
I didn't need to open the device. I just created it (which I wasn't doing before) and called the appropriate functions, i.e.
AudioIODevice* audioDevice = audioDeviceType->createDevice(outputDeviceName, inputDeviceName);
StringArray inputChannelNames = audioDevice->getInputChannelNames();
StringArray outputChannelNames = audioDevice->getOutputChannelNames();
Would you please clarify your remarks because open() takes as input a representation of the input and output channels that you wish to enable.
virtual String open (const BigInteger& inputChannels, const BigInteger& outputChannels, double sampleRate, int bufferSizeSamples) = 0;
Thanks.
jules
September 2, 2015, 7:54am
4
Yeah, sorry - I just meant create, not open.