[wdmaudiodev] Re: Need help on KSPROPSETID_Jack implementation.

  • From: "Mitchell Rundle" <mitchr@xxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 9 Mar 2006 17:32:09 -0800

The documentation for this property is not done yet, but it is on our
radar.  Here's some info to get you started.
 
Basically, you implement KSPROPERTY_JACK_DESCRIPTION property as a
multi-item, pin-wise property handled through the filter handle.  i.e.
the implementation semantics are the same as for (KSPROPSETID_Topology,
KSPROPERTY_TOPOLOGY_NODES) and (KSPROPSETID_Topology,
KSPROPERTY_TOPOLOGY_CONNECTIONS).  The property should be supported on
bridge-pins that are associated with 1 or more physical jacks.
 
Your handler should return a buffer of size 
    sizeof(KSMULTIPLE_ITEM) + n * sizeof(KSJACK_DESCRIPTION)
where n = KSMULTIPLE_ITEM.count = number of jacks for this bridge pin =
number of KSJACK_DESCRIPTION structs.
 
The buffer should contain
 
    KSMULTIPLE_ITEM
    KSJACK_DESCRIPTION 0
    KSJACK_DESCRIPTION 1
    ...
    KSJACK_DESCRIPTION n-1
 
Each KSJACK_DESCRIPTION struct should have info about 1 jack.  The
ChannelMapping field refers to the channels that are handled by that
jack only.  e.g. if your devices supports 5.1, then your speaker bridge
pin is probably associated with 3 jacks, so you should have 3
KSJACK_DESCRIPTION structs and each one should have a ChannelMappings
value with 2 bits.
 
Hopefully this is enough to get you started.  Let me know if you have
any questions.
 
Regards,
Mitch Rundle
Microsoft Corp
 
This posting is provided "AS IS" with no warranties, and confers no
rights.

________________________________

From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Kenny Ong
Sent: Tuesday, March 07, 2006 10:00 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Need help on KSPROPSETID_Jack implementation.


I'm trying to add Jack description to my audio device so that Vista will
be
able to display it on the speaker endpoint. Unfortunately, only manage
to
find the macros and definitions(portcls.h) in the WDK 5308, but not a
single
sample or doc on it.

Can anyone help?
 
 
Thanks!
Kenny.

________________________________

Yahoo! Mail
Bring photos to life! New PhotoMail
<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail
.mail.yahoo.com> makes sharing a breeze. 

Other related posts: