[wdmaudiodev] Extra 0x0000 sample injected (interleaved) in between real samples

  • From: "Don Bell" <0dbell@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 3 May 2007 08:14:04 -0500

I have written a (virtual) audio driver based on MSVAD.

Render (play to "speaker") works fine.

Capture (record from "microphone"), however, seems to inject an extra
16-bit sample (always 0x0000) after _each_ real 16-bit (mono) sample.
This capture test is conducted using the SoundRecorder that comes with
Windows XP, selecting (via File | Properties) All formats "8KHz, 16
Bit, Mono".

When looking at the DebugView trace of the frames arriving to
IDmaChannel::CopyFrom() all samples are as they were supposed be (no
extra 0x0000's added in between). So, I am currently clueless as to
what could be adding those extra "blank" samples...

Is it possible that despite the SoundRecorder setting on Mono, it is
actually operates in Stereo mode? If so, then why doesn't it do it
with the other (hardware) audio driver in the same system?

What else in the PortCls cystem could be modifying the content of the
destination buffer (in IDmaChannel::CopyFrom)  _after_ they have been
copied into there?

Any idea what could be adding those extra samples?

Many thanks in advance,
Don
******************

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] Extra 0x0000 sample injected (interleaved) in between real samples