[wdmaudiodev] Re: Processing volume/mute query requests with Channel = -1

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 19 Jul 2012 15:17:17 +0000

This is the "master mute" or "master volume".

For "mute", return 1 if all channels are muted and return 0 if any channel is 
unmuted.

For "volume", return the value of the "loudest" channel volume (that is, the 
max volume across all channels.)

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Eugene Muzychenko
Sent: Thursday, July 19, 2012 8:08 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Processing volume/mute query requests with Channel = -1

Hello!

Testing my driver with KS Studio, I noticed when KS Studio instantiates my 
topology filter, it sends KSPROPERTY_AUDIO_MUTE and 
KSPROPERTY_AUDIO_VOLUMELEVEL with KSPROPERTY_TYPE_GET flag and Channel equal to 
-1. My driver processes only "set" requests with such channel value, as 
suggested in MSDN for KSNODEPROPERTY_AUDIO_CHANNEL so it return error for these 
requests. KS Studio interprets this driver behavior as incorrect, displaying 
error message in orange.

I searched MSDN and MS site for explanation but found no informative 
description. Looked onto AC97 driver example and found the CHAN_MASTER 
definition equal to -1 but could not understand clearly how it is used. Looked 
onto MSVAD, it defines this macro too but never uses it and does not check 
Channel value in its propery handlers.

How to process these requests? Is there an informative description in MS 
documents?

Regards,
Eugene

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

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: