BASS_ChannelGetAttributeEx
Retrieves the value of a channel's attribute.
DWORD BASS_ChannelGetAttributeEx(
DWORD handle,
DWORD attrib,
void *value,
DWORD size
);
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.
|
attrib | The attribute to get the value of... one of the following.
other attributes may be supported by add-ons, see the documentation.
|
value | Pointer to a buffer to receive the attribute data.
|
size | The size of the attribute data... 0 = get the size of the attribute without getting the data.
|
Return value
If successful, the size of the attribute data is returned, else 0 is returned. Use
BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel.
|
BASS_ERROR_NOTAVAIL | The attribute is not available.
|
BASS_ERROR_ILLTYPE | attrib is not valid.
|
BASS_ERROR_ILLPARAM | size is not valid.
|
some attributes may have additional error codes, see the documentation.
Remarks
This function also supports the floating-point attributes supported by
BASS_ChannelGetAttribute.
See also
BASS_ChannelGetAttribute,
BASS_ChannelGetInfo,
BASS_ChannelSetAttributeEx