[wdmaudiodev] Re: IMiniportWaveCyclicStream::SetFormat() insists on Stereo instead of Mono

  • From: Ken Cooper <Ken.Cooper@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 7 May 2007 10:24:15 -0700

If you are using XP, kmixer is in the path.  That's where the stereo format is 
coming into play.  You might try changing the format in the sound control 
panel.  Alternatively, you can restrict the data formats that your driver 
supports so that it only advertises that it supports mono.  Doing that, 
however, leaves you with a driver that doesn't meet XP requirements.

Ken

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Don Bell
Sent: Friday, May 04, 2007 11:42 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] IMiniportWaveCyclicStream::SetFormat() insists on Stereo 
instead of Mono

I have written a virtual audio driver based on MSVAD. It works but...
when I try to play through Sound Recorder a Mono .wav file, "somebody"
(either Sound Recorder or the driver itself) insists on setting
nChannels = 2 (instead of 1) in
CMiniportWaveCyclicStreamMSVAD::SetFormat().

I can see this clearly in the debug trace.

Why???

Is there a rule that states that every Mono signal needs to be
converted on playback to Stereo? (so that in sounds equally on both
speakers, giving the illusion of mono)?

How do I force the driver to always set nChannels = 1 (mainly to cut
bandwidth requirements to half, but also to simplify frame handling).

I would appreciate any tip or hint in the matter.

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/

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

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: