BASS_ATTRIB_VOL attribute
The volume level of a channel.
BASS_ChannelSetAttribute( DWORD handle, BASS_ATTRIB_VOL, float volume );
Parameters
handle | The channel handle. |
volume | The volume level... 0 (silent) to 1.0 (full). This can go above 1.0 on decoding channels. |
Remarks
This attribute applies to playback of the channel, and does not affect the channel's sample data, so has no real effect on decoding channels. It is still adjustable then though, so that it can be used by the BASSmix add-on and anything else that wants to use it.When using BASS_ChannelSlideAttribute to slide this attribute, a negative volume value can be used to fade-out and then stop the channel.