Simulate microphone device from byte array

teamclouday 1 Reputation point
2020-09-06T03:48:28.617+00:00

Hi, I'm developing a Windows application. It can connect to an Android device, and receive audio data from the microphone on Android side.
And I'm trying to create a virtual microphone on Windows side that can simulate audio input based on the data received.

Currently I've implemented a Directshow version, inspired from this post, and it works after being connected to an audio renderer filter in GraphEdit tool.

The problem is that in common applications like Zoom or Discord, directshow audio capture sources filters are not recognized as a device. (unlike video capture sources filters for camera simulation)

After some more googling, it seems that I need to implement an virtual audio driver, so that common applications can recognize the virtual device.
I found these samples about audio driver from GitHub.

Which of these samples is most similar to my request? Where should I start learning if I'm about to build my own driver?
Are there any other options in Windows API to accomplish this requirement?
Thanks

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.