[wdmaudiodev] Re: Setting KSPROPERTY_AUDIO_VOLUMELEVEL

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 20 Apr 2011 15:29:39 +0000

What are the dB minimum, maximum, and stepping values for the device in 
question?

If you go to the Sound control panel, Levels tab, right-click the slider, and 
choose dB, does the perceived output volume match up with the slider?

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Robert Bielik
Sent: Wednesday, April 20, 2011 8:17 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Setting KSPROPERTY_AUDIO_VOLUMELEVEL

Hi all,

I'm trying to implement volume control for portmixer, however it seems that the 
output volume does not follow my volume setting linearly, resulting in that 
pretty much nothing happens up to 50%...

I get the KSPROPERTY_STEPPING_LONG values for the KSNODETYPE_VOLUME and set the 
volume as:

LONG volume = floatVolume * (pStepping->Bounds.SignedMaximum - 
pStepping->Bounds.SignedMinimum)) + pStepping->Bounds.SignedMinimum;

where floatVolume is between 0.0 - 1.0.

I'd pretty much like to implement 
http://msdn.microsoft.com/en-us/library/dd368062(v=VS.85).aspx

Ideas ?

TIA
/Rob
******************

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: