> I am developing a virtual sound driver (WDM). My driver will be used as
> default audio device and I would like to redirect some requests to a real
> sound card. For this purpose I've planned to use direct calls to the
> existing sound driver but I could not find a way to enumerate sound
drivers
> from the kernel mode. I don't want to use user space code for these
> purposes. Is there other way to make direct calls to another sound driver?
IoGetDeviceInterfaces with one of those KSCATEGORY_*.
KSCATEGORY_AUDIO should work, I suppose.
> Probably it would be better to create filter device driver for existing
> sound card. Since the audio drivers develop as miniport driver I worry
about
> the possibility of such things. What do you think?
No, it won't be better.
A filter for KS based device is incredibly difficult to get working
reasonably well and absolutely impossible to get perfect.
A communication between user land and KS is undocumented and subject to
change at any time.
-- Max.
|