[wdmaudiodev] Virtual Audio Driver: Interacting with user-space application

  • From: Oleg Vorobiov <isnullxbh@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 15 Jun 2020 14:21:21 +0700

Hello!

I need help in the implementation of the virtual audio driver with the goal
of providing a virtual microphone which receives data from the user-space
application.
I started from Microsoft Virtual Audio Device Driver Sample (MSVAD),
project - 'micarray', with the following modifications:
1. Added handler for IRP_MJ_OPEN for the driver object
2. Added handler for IRP_MJ_WRITE for the driver object

Next, I was tried to get a symlink to the virtual device using Microsoft
Media Foundation like described in this article -
https://docs.microsoft.com/en-us/windows/win32/medfound/audio-video-capture-in-media-foundation
(I changed MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID to
MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_GUID), but I got an empty string.

Can you explain, please, how to correctly interact with the driver (based
on micarray) from a user-space application?

Thanks!

Other related posts: