[wdmaudiodev] How to reduce latency of virtual microphone array

  • From: 鲁 燕清 <yanqinglu@xxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 3 Feb 2020 06:54:35 +0000

Hi,

I'm implementing a virtual microphone driver based on sysvad with the internal 
MicArray3.

I wrote a ring buffer, my Application pushs PCM data to the ring buffer via 
custom property handle, and the CMiniportWaveRTStream::WriteBytes reads audio 
data from the RingBuffer. When I use the Graphedt to test the virtual 
microphone, there is about 1 second latency.

I defined the size of ring buffer with: (nAvgBytesPerSec * 500)  / 1000, 
nAvgBytesPerSec is 44100.

What caused the latency? Is there any method to reduce latency?

Thanks

Other related posts: