[wdmaudiodev] Programatically determining the default capture and render devices using SetupDixxxxx

  • From: Matt Sykes <zzebowa@xxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 16 Dec 2016 11:37:21 +0000

Hi everyone


I have looked at the flags in the SP_DEVICE_INTERFACE_DATA struct for all 
devices yet it is only ever set to SPINT_ACTIVE, and never SPINT_DEFAULT, yet 
clearly by the audio UI there is a default device selected.

This is very annoying.  I would ideally like to programmatically determine this 
so the solution is more flexible.

Currently the test software is user mode, but will probably end up in the 
kernel, so it needs to be a solution that works for both if possible.


Many thanks for any advice anyone can give me,

Matt

Other related posts:

  • » [wdmaudiodev] Programatically determining the default capture and render devices using SetupDixxxxx - Matt Sykes