BASS_ChannelGetAttributes

Retrieves the basic attributes of a sample, stream, MOD music, or CD channel.

BOOL WINAPI BASS_ChannelGetAttributes(
    DWORD handle,
    DWORD *freq,
    DWORD *volume,
    int *pan,
);

Parameters
handleThe channel handle... a HCHANNEL, HMUSIC, HSTREAM, or CDCHANNEL.
freqThe sample rate... NULL = don't retrieve it.
volumeThe volume... NULL = don't retrieve it.
panThe 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_HANDLEhandle is not a valid channel.
BASS_ERROR_CDINIT BASS_CDInit has not been successfully called.
BASS_ERROR_CDVOLBASS 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