Sets the value of a channel's attribute.
BOOL BASS_ChannelSetAttribute(
DWORD handle,
DWORD attrib,
float value
);
| handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. | ||||||||||||||||||||||||||||||||||||||||||
| attrib | The attribute to set the value of. One of the following.
| ||||||||||||||||||||||||||||||||||||||||||
| value | The new attribute value. See the attribute's documentation for details on the possible values. |
| BASS_ERROR_HANDLE | handle is not a valid channel. |
| BASS_ERROR_ILLTYPE | The channel does not have the requested attribute. |
| BASS_ERROR_ILLPARAM | value is not valid. |
| BASS_ERROR_DENIED | The attribute is read-only. |
If the attribute is currently sliding from a BASS_ChannelSlideAttribute call then that will be stopped before applying the new value. BASS_SYNC_SLIDE syncs will be triggered by this.