The volume level of an instrument in a MOD music.
BASS_ChannelSetAttribute( HMUSIC handle, BASS_ATTRIB_MUSIC_VOL_INST + inst, float volume );
handle | The MOD music handle. |
inst | The instrument to set the volume of... 0 = 1st instrument. |
volume | The volume level... 0 (silent) to 1 (full). |
During playback, the effect of changes to this attribute are not heard instantaneously, due to buffering. This latency can be reduced via the BASS_ATTRIB_BUFFER attribute.
This attribute can also be used to count the number of instruments in a MOD music.
int instruments = 0; float dummy; while (BASS_ChannelGetAttribute(music, BASS_ATTRIB_MUSIC_VOL_INST + instruments, &dummy)) instruments++;