[wdmaudiodev] how to capture sound from flash with virtual audio device??

  • From: "Toan_Gmail" <phamquoctoan@xxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 1 Nov 2007 12:42:03 +0700

Hi all, i want to capture sound from flash.

I try/plan to do that by creating a virtual audio device with WDM.

First , i found Simple WDM is a virtual audio device. 
($DDK_INSTALL_DIR$\src\wdm\audio\msvad)

and i also get this introduction:
...................................................................................................................................................
  

  Modifying the MSAVD Driver to make your own virtual audio device.

    In Kernel Streaming, every component is a Filter. Filters have input (sink) 
and output (source) pins. Data enters a filter through its input pin and leaves 
through     the output pin. Every filter has a purpose :  to process the data 
flowing through them.

    As an audio device (virtual or real), your hardware will have a range of 
audio data parameters which can be accepted. Or in other words, only data 
complying to a specific format and parameter range can be accepted by the input 
pins. This is called the property of the pin. 

    Specify those ranges in the PinDataRangesStream static variable of the 
MSAVD source code. 

    Now, in the WaveCyclic miniport there are two methods named CopyTo and 
CopyFrom for copying audio data to and from the audio device's  memory (DMA). 
Add code to those function to implement a virtual write and read and the 
minimal audio driver code is complete.

...........................................................................................................................................

Actually, i newbie in WDM, but i am interesting to develop this and it is very 
important to me.

The thing i need to do is :

Sound from Flash ->real Playback device ->.... processing with virtual audio 
device....->real Recording device. 

I mean, when a flash (with sound) is playing ,  i can hear the sound (playback) 
and my recording device can capture the sound also.

But i donot know what steps that virtual audio device need to do ? can you help 
me? Can we use Simple WDM to do this?

Thank for your help..




Other related posts: