BASS_ATTRIB_MUSIC_PSCALER attribute

The position scaler of a MOD music.

BASS_ChannelSetAttribute(
    HMUSIC handle,
    BASS_ATTRIB_MUSIC_PSCALER,
    float scale
);

Parameters

handleThe MOD music handle.
scaleThe scaler... 1 (min) to 256 (max). This will be rounded down to a whole number.

Remarks

When getting the order position via BASS_ChannelGetPosition, the row will be scaled by this value. By using a higher scaler, you can get a more precise position indication.

The default position scaler is 1.

Example

Get the position of a MOD music accurate to within a 10th of a row.
DWORD pos, order, row, row10th;
BASS_ChannelSetAttribute(music, BASS_ATTRIB_MUSIC_PSCALER, 10); // set the scaler
pos = ChannelGetPosition(music, BASS_POS_MUSIC_ORDER);
order = LOWORD(pos); // the order
row = HIWORD(pos) / 10; // the row
row10th = HIWORD(pos) % 10; // the 10th of a row

See also

BASS_ChannelGetAttribute, BASS_ChannelGetPosition, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute