[wdmaudiodev] Setting channel config

  • From: Robert Bielik <robert.bielik@xxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 02 Nov 2010 06:21:58 +0100

Hmm.. I'm trying to set the channel configuration programmatically, but fail ("The 
property set specified does not exist on the object."), my code
for setting it is:

KSP_NODE node;
node.Property.Set = KSPROPSETID_Audio;
node.Property.Id = KSPROPERTY_AUDIO_CHANNEL_CONFIG;
node.Property.Flags = KSPROPERTY_TYPE_SET;
node.NodeId = 0;    // KSNODETYPE_DAC
node.Reserved = 0;
KSAUDIO_CHANNEL_CONFIG config;
config.ActiveSpeakerPositions = pWFX->dwChannelMask;
fRes = DeviceIoControl(hFilter, IOCTL_KS_PROPERTY, &node, sizeof(KSP_NODE), 
(LPVOID)&config, sizeof(KSAUDIO_CHANNEL_CONFIG), &dwBytesReturned, NULL);

What am I doing wrong, as I can see that my handler is called when I set the 
configuration via sound control panel... ?

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/

Other related posts: