Robert Bielik
2011-04-13 11:15:46 UTC
I have a problem when trying to use WASAPI opening a device with 44.1k/6channels (exclusive mode) where it complains about AUDCLNT_E_UNSUPPORTED_FORMAT, but I can open the device fine using WDMKS... I'll debug more but thought I'd pop the Q if there any bells ringing... :)
I'd rather use WASAPI in this particular application as it "abstracts away" the topology demux (i.e. in WDMKS you see one device, whereas in WASAPI you might have Speakers/Line out/SPDIF/...), which is a PITA to get using Pin/node descriptors on the topology filter... (this is something that needs to be done though for a portmixer WDMKS implementation).
Also a question on max channels in WASAPI impl: It seems the max no of channels is retrieved from the shared mode default format (PKEY_AudioEngine_DeviceFormat), but that might not be the maximum channels a device can support in exclusive mode ?
Regards,
/Rob
I'd rather use WASAPI in this particular application as it "abstracts away" the topology demux (i.e. in WDMKS you see one device, whereas in WASAPI you might have Speakers/Line out/SPDIF/...), which is a PITA to get using Pin/node descriptors on the topology filter... (this is something that needs to be done though for a portmixer WDMKS implementation).
Also a question on max channels in WASAPI impl: It seems the max no of channels is retrieved from the shared mode default format (PKEY_AudioEngine_DeviceFormat), but that might not be the maximum channels a device can support in exclusive mode ?
Regards,
/Rob