The mix level of a MIDI stream.
BASS_ChannelSetAttribute(
HSTREAM handle,
BASS_ATTRIB_MIDI_VOL,
float volume
);
| handle | The MIDI stream handle. |
| volume | The volume level... 0 = silent, 1.0 = normal/default, above 1.0 = amplification. |
Changes can be made at any time, but the effect of changes during playback may not be heard instantaneously due to buffering.
This attribute differs from the BASS_ATTRIB_VOL attribute in that it changes the level of the generated data, not just playback of it. It can be useful for reducing the level to prevent clipping/distortion.
BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute