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.

Hi.

I need some help with the BASS wrapper. I am using BASSex at the moment.

Basically, to get the playback seconds of a mp3, you need to put in the main loop the following:

Position = BASS_ChannelGetPosition (Stream)
Seconds = BASS_ChannelBytes2Seconds(Stream,Position)

(where Stream is the Bass stream playing).

Everything is correct if I just use the first line, to get Bytes played, but as soon as I add ChannelBytes2Seconds everything goes crazy and the app crashes.

I've noticed that if I put the variable "Seconds" as float, the result I have is something like 2.82343e+011...

What am I doing wrong????

Thanks