Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
17 Jan '25 - 13:45
Home
Help
Search
Login
Register
Un4seen Developments Forum
»
Developments
»
BASS
»
Topic:
how to know how long a track is?
Reply
Print
Pages: [
1
]
Author
Topic: how to know how long a track is? (Read 3232 times)
tapeworm22
Posts: 4
how to know how long a track is?
«
on:
13 Jun '03 - 17:16 »
Quote
how can i get the information about the length of an mp3? i've tried to use this function:
BASS_StreamGetLength()
and then:
BASS_ChannelBytes2Seconds
but always the length i get is not equal "the real" length of a track, it's always longer?
why does it happen? are there any other ways to get the length of a track?
Logged
I
Posts: 1
Re: how to know how long a track is?
«
Reply #1 on:
13 Jun '03 - 18:36 »
Quote
Dim X As Long
Dim TotalTimeInSeconds As Long
X = BASS_StreamGetLength(channel)
TotalTimeInSeconds = BASS_ChannelBytes2Seconds(channel, X)
«
Last Edit: 13 Jun '03 - 18:39 by I
»
Logged
(: JOBnik! :)
Posts: 1080
Re: how to know how long a track is?
«
Reply #2 on:
13 Jun '03 - 20:25 »
Quote
Hi
Try using a flag: BASS_MP3_SETPOS
when creating a stream, e.g:
handle = BASS_StreamCreateFile(BASSFALSE,filename,0,0,BASS_MP3_SETPOS)
Have fun!
JOBnik!
Logged
Reply
Print
Pages: [
1
]
Un4seen Developments Forum
»
Developments
»
BASS
»
Topic:
how to know how long a track is?