BASS_ChannelSetAttribute
Sets the value of a channel's attribute.
BOOL BASS_ChannelSetAttribute(
DWORD handle,
DWORD attrib,
float value
);
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.
|
attrib | The attribute to set the value of... one of the following.
other attributes may be supported by add-ons, see the documentation.
|
value | The new attribute value. See the attribute's documentation for details on the possible values.
|
Return value
If successful, 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_ILLTYPE | attrib is not valid.
|
BASS_ERROR_ILLPARAM | value is not valid. See the attribute's documentation for the valid range of values.
|
some attributes may have additional error codes, see the documentation.
Remarks
The actual attribute value may not be exactly the same as requested, due to precision differences. For example, an attribute might only allow whole number values.
BASS_ChannelGetAttribute can be used to confirm what the value is.
See also
BASS_ChannelFlags,
BASS_ChannelGetAttribute,
BASS_ChannelSetAttributeEx,
BASS_ChannelSet3DAttributes,
BASS_ChannelSlideAttribute