Hi, this is my code to get the MOD position 2 seconds before the end of the MOD.
var y: Int64;
y := Trunc(BASS_ChannelBytes2Seconds(ChanHandle, BASS_MusicGetLength(ChanHandle, True))) - 2;
BASS_ChannelSetPosition(ChanHandle, MAKELONG(y, $FFFF));
y := BASS_ChannelGetPosition(ChanHandle);
The value that y gets at the end is 0, why!? I dont understand, first y gets the right time in seconds, then i set it as the position, and i try to assign the new position to y and it returns 0...please help