This function returns the capabilities of a specified audio source.
DWORD AAM_GetSourceCap( IN DWORD dwIndex, OUT AAM_SRCCAP *pASC );
Flag |
Value |
Description |
AAM_SRC_BYID | 0x00000000 | Use the audio source identifier. |
AAM_SRC_BYINDEX | 0x80000000 | Specifies the source with an index ranging from 0 to GetNumSources minus 1; in other words, use the bitwise OR to combine the index with the flag. |
Zero indicates success. AAM_ERR_INVALIDPARAM indicates an invalid parameter
This function is part of the audio source control API.
The main use of this function is to get an audio source identifier, which the application uses to select the source. An application can get the AAM_SRCCAP structure of a particular audio source and check the m_dwinfo member of that structure. If AAM_FLAG_SELECTED is set, then that audio source is active.