converting file position / length to time val

Started by mike_r22,

mike_r22

can anyone show me how to convert the file stream position
to a seconds please in VB


(: JOBnik! :)

Hi ;D

dim sec as single

sec = BASS_ChannelBytes2Seconds(handle, BASS_ChannelGetPosition(handle)
)

* if you want to get the total playing time in seconds of a stream then do this:

dim duration as single

duration = BASS_ChannelBytes2Seconds(handle, BASS_StreamGetLength(handle))

Have fun!

8) JOBnik! 8)

mike_r22

wow that was quick thanx it works and gives split times
thats very cool
TY jobnik