AAM_RegisterAudioCtrl

This function is called by device drivers to register the audio sources and audio control node, which is used to control the audio flow path.

Syntax

DWORD AAM_RegisterAudioCtrl( AAM_SRCCAP pSrc, BOOL bRegister );

Parameters

pSrc
Pointer to an AAM_SRCCAP structure that contains information about the audio source.
bRegister
Boolean that is set to TRUE to register the control or to FALSE to deregister it.

Return Values

Zero indicates success. AAM_ERR_ALREADYEXIST indicates that the source is already registered.

Remarks

This function is a member of the audio source control API.

If an audio source is currently selected, deregistering the audio source automatically deselects the source.

This function is used by Plug and Play audio devices to register audio sources.

If the audio source is depending on another audio control node, the node’s identifier should be put in the m_dwInfo member of the AAM_SRCCAP structure.