Retrieves the basic attributes of a sample, stream, MOD music, or CD channel.
BOOL WINAPI BASS_ChannelGetAttributes( |
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or CDCHANNEL. |
freq | The sample rate... NULL = don't retrieve it. |
volume | The volume... NULL = don't retrieve it. |
pan | The panning position... NULL = don't retrieve it. |
Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_CDINIT | BASS_CDInit has not been successfully called. |
BASS_ERROR_CDVOL | BASS could not find any volume control for the CD. |
Remarks
Only the volume attribute is available for the CD channel, but not all soundcards/drivers have the ability to control the CD volume.
See also
BASS_ChannelGet3DAttributes, BASS_ChannelGetFlags, BASS_ChannelSetAttributes