Bass Bytes2Seconds?

Blitz3D Forums/Blitz3D Userlibs/Bass Bytes2Seconds?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

mr.ninja

I've found the way to solve this problem.
If you need to pass QWORD value just change DECLS like this:

BASS_ChannelSetPosition Handle%, Pos ;<--QWORD, so does not work, because blitz does not support 64bit inegers

write like this:
BASS_ChannelSetPosition Handle%, Pos, Pos2

And use this function like this:
BASS_ChannelSetPosition MusicChannel, 12345, 0

You will pass lo value of 64bit qword, hi value will be set to 0.
It will be enough for usual music tracks.

Functions like BASS_ChannelGetLength or BASS_ChannelGetPosition will recieve lo 32 bit, but it is enough for usual needs too.