AAM_SelectSource

This function selects an audio source to be played.

Syntax

DWORD AAM_SelectSource( DWORD dwAudioSourceID );

Parameters

dwAudioSourceID
Specifies the identifier of the audio source to be played. AAM_SRC_NOSOURCE is a defined identifier that stops the current audio source.

Return Values

Zero indicates success. AAM_ERR_INVALIDPARAM indicates an invalid parameter.

Remarks

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

The source identifier can be obtained from AAM_GetSourceCap. When called, AAM_SelectSource stops the audio source that is currently playing, and loads the new source driver.

An audio application must call AAM_SelectSource to select a source prior to playing it, even if the application can load the device driver directly.

See Also

AAM_GetSourceCap