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

  • From: "Toan_Gmail" <phamquoctoan@xxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 1 Nov 2007 15:10:05 +0700

HI ALL, It is also said that, i extract from DirectKS.htm :
.......................................................................
The DirectKS sample application program demonstrates how a user-mode client can 
achieve direct access to kernel streaming (KS) filters. The sample application 
plays a wave audio stream through an audio-rendering device. However, with 
relatively little effort, the application can be modified to record a wave 
audio stream from an audio-capture device. The classes that are implemented in 
the sample code support both audio rendering and capture.
.......................................................................
I am wonderring that instruction above ,and the bold text, are right? Can 
DirectKS do that ? Anyone can show me how to do this?

I downloaded DirectKS.zip , extracting this file and Open project by Visual 
Studio but cannot find SDK inlucde and lib directory to add . So i cannot build 
the project success!! ! Can you help me how to build this success ?  
  ----- Original Message ----- 
  From: Toan_Gmail 
  To: wdmaudiodev@xxxxxxxxxxxxx 
  Sent: Thursday, November 01, 2007 12:42 PM
  Subject: how to capture sound from flash with virtual audio device??


  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: