Results 1 to 4 of 4

Thread: Get Song Lenght

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Québec, Canada
    Posts
    131

    Get Song Lenght

    Hello,
    I would like to know how I can get the legnth of a song.
    Khavoerm Irithyl

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Québec, Canada
    Posts
    131
    The song can be either .wav, .mid or .mp3. It is played using mciSendString.
    Khavoerm Irithyl

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width