|
-
Nov 23rd, 2001, 08:35 PM
#1
Thread Starter
Addicted Member
Get Song Lenght
Hello,
I would like to know how I can get the legnth of a song.
-
Nov 23rd, 2001, 09:16 PM
#2
Frenzied Member
That's really not enough information.
If you want any help at all you're going to need to explain at the very least what format the song is in.
Harry.
"From one thing, know ten thousand things."
-
Nov 23rd, 2001, 09:19 PM
#3
Thread Starter
Addicted Member
The song can be either .wav, .mid or .mp3. It is played using mciSendString.
-
Nov 25th, 2001, 03:00 PM
#4
Monday Morning Lunatic
WAV and MP3 have structural information at the beginning of the file, so you can work it out from there (see MSDN for info on WAV, and do a search on google for the MP3 one).
SMF is a bit more complicated, I think you need to go through all the tracks finding their total length and pick the longest one (have fun with the file format )
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|