You would use MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_ENDPOINT_ID to record
from a particular microphone via Media Foundation. You would get the value from
the legacy IMMDeviceEnumerator API.
It is usually easier to use the Windows.Media.Capture API than messing with
Media Foundation directly. You would set the
MediaCaptureInitializationSettings.AudioDeviceId for this. You would get the
value from the Windows.Devices.Enumeration API using a selector from the
From: Oleg Vorobiov<mailto:isnullxbh@xxxxxxxxx>
Sent: Monday, June 15, 2020 12:23 AM
Subject: [EXTERNAL] [wdmaudiodev] Virtual Audio Driver: Interacting with
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
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 -
(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?