BASS_MusicSetPositionScaler

Sets a MOD music's BASS_ChannelGetPosition scaler.

BOOL WINAPI BASS_MusicSetPositionScaler(
    HMUSIC handle,
    DWORD scale
);

Parameters
handleThe MOD music's handle.
scaleThe scaler... 1 (min) - 256 (max)... the default when a MOD music is loaded is 1.

Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_HANDLEhandle is not valid.

Remarks
When you call BASS_ChannelGetPosition, the row (HIWORD) will be scaled by this value. By using a higher scaler, you can get a more precise position indication.

Example
To get the position of a MOD music accurate to within a 10th of a row.

DWORD pos,order,row,row10th;
BASS_MusicSetPositionScaler(a_music,10); // set the scaler
pos=BASS_ChannelGetPosition(a_music);
order=LOWORD(pos); // the order
row=HIWORD(pos)/10; // the row
row10th=HIWORD(pos)%10; // the 10th of a row

See also
BASS_ChannelGetPosition