Any one worked with wave files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kirubanantham
    New Member
    • Nov 2006
    • 8

    Any one worked with wave files?

    Hai Friends,
    I just want to Implement index marking in the .wav file. can any one, tell me how to do this? or please refer any site which gives details related to this. if any one can give just sample code it will be great.

    Thank you,
    kiruba.k.
  • macklin01
    New Member
    • Aug 2005
    • 145

    #2
    Originally posted by kirubanantham
    Hai Friends,
    I just want to Implement index marking in the .wav file. can any one, tell me how to do this? or please refer any site which gives details related to this. if any one can give just sample code it will be great.

    Thank you,
    kiruba.k.
    Hi.

    Did you read my response to your other thread?

    I did find this link on the WAV file format which may answer your question. Pay particular attention to the CUE and PLST (playlist) chunks.

    This link and this link may also be helpful. (Also look for WAV on wikipedia.)

    So, if you want to do this strange thing with wave files, you'll have to probably write the chunks yourself. And then you'll have to find a media player that actually uses them (I don't know of any myself.) or write one yourself. Do you see where this is going? :)

    That's why I recommended that you split up your wav files and either generate a traditional playlist for Winamp of WMP, or rejoin your WAV files in the desired play order. -- Paul

    Comment

    • kirubanantham
      New Member
      • Nov 2006
      • 8

      #3
      Originally posted by macklin01
      Hi.

      Did you read my response to your other thread?

      I did find this link on the WAV file format which may answer your question. Pay particular attention to the CUE and PLST (playlist) chunks.

      This link and this link may also be helpful. (Also look for WAV on wikipedia.)

      So, if you want to do this strange thing with wave files, you'll have to probably write the chunks yourself. And then you'll have to find a media player that actually uses them (I don't know of any myself.) or write one yourself. Do you see where this is going? :)

      That's why I recommended that you split up your wav files and either generate a traditional playlist for Winamp of WMP, or rejoin your WAV files in the desired play order. -- Paul

      Hai Mr Paul,
      Thanks for your reply, i have not seen your first reply i am sorry for that.
      Actually i dont know any thing about this wave file format i am new to this. in one of my application i am going implement this wave file. but in that i should be able to load one big wave file initially and then controling it at the runtime( for example if the wave file length is 60 second long i should be able to play this how ever i want that is, (0sec to 10sec),(10sec to 30sec),(15sec to 25sec),etc )
      can you recoment any easy method for this? and also sample code if it is possible.

      Thank you,
      Kiruba.K

      Comment

      • macklin01
        New Member
        • Aug 2005
        • 145

        #4
        Originally posted by kirubanantham
        Hai Mr Paul,
        Thanks for your reply, i have not seen your first reply i am sorry for that.
        Actually i dont know any thing about this wave file format i am new to this. in one of my application i am going implement this wave file. but in that i should be able to load one big wave file initially and then controling it at the runtime( for example if the wave file length is 60 second long i should be able to play this how ever i want that is, (0sec to 10sec),(10sec to 30sec),(15sec to 25sec),etc )
        can you recoment any easy method for this? and also sample code if it is possible.

        Thank you,
        Kiruba.K
        Hi, and sorry for my delayed response. I'm afraid I don't have any sample code available, and no time to research and write it. (I'm in the thick of my Ph.D. work.)

        What you are proposing is to develop code to spit out a modified version of the wave file that includes this index information. Because your output file will be somewhat non-standard, you'll next need to write your own player information that intereprets your bookmarks and plays the file accordingly.

        I still view this as inefficient. Personally, if I were doing this:

        Method 1:
        1) I'd output a simple text file that includes the bookmark information. Perhaps organize it by frame number. (i.e., play frameA1 to frameB1 N1 times, then frameA2 to frameB2 N2 times, etc...)
        2) Write a player that loads the wave file and your index file and plays it accordingly.

        Method 2:
        1) I'd write a processing program that splits your wave file into multiple wave files.
        2) The processing program should generate a playlist, such as the very simple Winamp M3U format or Microsoft's windows media player WPL format. Both are simple text files. MS's format looks like an XML file to me.
        3) Then, you can open your playlist in your media player of choice without writing a media player of your own.

        Both methods involve being able to open and process a WAV file. Method 2 will be faster, since you won't need to write a player. It's a simple matter of splitting the original WAV file into multiple WAV files, following by writing a simple text playlist file.

        Best of luck, and please let us all know what you choose to do. -- Paul

        Comment

        Working...