I'm developing a Windows audio application, and am using an MMDeviceEnumerator to whip through all of the available audio interfaces. This trickles down to getting an MMDevice that gives me some information about the device itself.
I'm wanting to get the total number of channels that the device provides. Currently, I'm using the property store to return the current WAV format, but this returns the format that Windows has specified for 'shared' mode. Using a Focusrite 18i8, Windows indicates that this device has 2 channels, which is exactly what is specified in the 'Default Format' of the device advanced settings. Windows itself won't let me specify anything other than 2 input channels in the Default Format.
Problem is, this device has 18 input channels, and I want to open it in exclusive mode using Wasapi and gain access to all of the channels. I'm not sure how to find out how many 'real' channels the audio device actually has.
Can this be found from MMDevice?
PKEY_AudioEngine_OEMFormat
. – Roman R.