IAudioChannelConfig::SetChannelConfig
Previous | Next |
IAudioChannelConfig::SetChannelConfig
The SetChannelConfig method sets the channel-configuration mask in a channel-configuration control.
HRESULT SetChannelConfig( DWORD dwConfig, LPCGUID pguidEventContext );
Parameters
dwConfig
[in] The channel-configuration mask.
pguidEventContext
[in] Context value for the IControlChangeNotify::OnNotify method. This parameter points to an event-context GUID. If the SetChannelConfig call changes the state of the channel-configuration control, all clients that have registered IControlChangeNotify interfaces with that control receive notifications. In its implementation of the OnNotify method, a client can inspect the event-context GUID to discover whether it or another client is the source of the control-change event. If the caller supplies a NULL pointer for this parameter, the client's notification method receives a NULL context pointer.
Return Value
If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.
Return code | Description |
E_OUTOFMEMORY | Out of memory. |
Remarks
For information about channel-configuration masks, see the discussion of the KSPROPERTY_AUDIO_CHANNEL_CONFIG property in the Windows DDK documentation.
Requirements
Client: Windows Vista
Header: Include Devicetopology.h.
See Also
Previous | Next |