BASS_ATTRIB_MUSIC_SPEED attribute

The speed of a MOD music.

BASS_ChannelSetAttribute(
    HMUSIC handle,
    BASS_ATTRIB_MUSIC_SPEED,
    float speed
);

Parameters

handleThe MOD music handle.
speedThe speed... 0 (min) to 255 (max). This attribute is an integer (floating-point values will be truncated).

Remarks

This attribute is a direct mapping of the MOD music's speed, so the value can subsequently be changed by effects in the file itself.

The "speed" is the number of ticks per row. Setting it to 0, stops and ends the music. Note that by changing this attribute, you are changing the playback length.

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.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute, BASS_ATTRIB_MUSIC_BPM