[wdmaudiodev] Re: Fixed - Capture audio from USB Audio Device on XP (SP2)

  • From: "Edwin van den Oosterkamp" <edwin@xxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 21 Feb 2006 16:30:57 -0000

Hello All,

Many thanks to the people who replied to my query - my kernel-streaming problem 
with USB Audio on XP has been fixed. This was mainly thanks to this question 
from Jerry Evans:

> When capturing do you first set the pin state to KSSTATE_PAUSE and then 
> KSSTATE_RUN?

That question made me decide to play around with different pausing and running 
schemes.

The working solution is:
- I create the capturing pin with a WAVEFORMATEX structure (48kHz, 2 channels, 
16bits). 
- The pin state is set to KSSTATE_PAUSE. 
- I prepare a couple of KSSTREAM_HEADER and OVERLAPPED structs. 
- The (auto reset) events are created and filled in in the OVERLAPPED structs. 
- The pin state is set to KSSTATE_RUN. 
- The KSSTREAM_HEADERs are handed over to the pin together with a matching 
OVERLAPPED. 

The only difference with the problem version is the setting of the paused state.

Best regards,

Ing. Edwin van den Oosterkamp
R&D, MDO UK


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts:

  • » [wdmaudiodev] Re: Fixed - Capture audio from USB Audio Device on XP (SP2)