HRESULT SpeakerGet(TCHAR *pszSpeaker, DWORD dwSpeakerSize,
DWORD *pdwNeeded);
Retrieves the name of the current speaker for an audio source.
· Returns NOERROR if successful, or one of these error values:
E_INVALIDARG
E_OUTOFMEMORY
SRERR_NOTSUPPORTED
SRERR_VALUEOUTOFRANGE
pszSpeaker
[in/out] Address of a buffer that receives the name of the current speaker. If the buffer receives an empty string, the current speaker is unknown.
dwSpeakerSize
[in] Size, in bytes, of the buffer specified by pszSpeaker. If the specified size is too small, the function returns an error and fills pdwNeeded with the number of bytes needed.
pdwNeeded
[out] Address of a variable that receives the number of bytes needed for the speaker string.