How to play MP3 in my program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kardon33
    New Member
    • May 2007
    • 158

    How to play MP3 in my program

    Im working on some demos that will require me to play mp3s in my program. The last time I had to do this I just executed an external program like madplay or mpg123. However this will not work for me, I will need to be able to "scrub" / fast forward to certain parts of the song.

    My end goal is to have multiple computers playing local mp3 files while talking on a tcp server to keep them synced.

    So my first step is to get the MP3 playing in my code and be able to control the position as well as other playback options (on the fly curves, and sample rates).

    I also don't want to spend too much time on this part of the code, I feel as many open source programs and api have already been written that do the playing.

    Would LAME be an option? or libMAD?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What platform?

    Comment

    • kardon33
      New Member
      • May 2007
      • 158

      #3
      Sorry forgot to mention that, Linux Debian x86

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Is it a commercial product?

        Comment

        • kardon33
          New Member
          • May 2007
          • 158

          #5
          For now no, its in a proof of concept phase.

          Comment

          • RedSon
            Recognized Expert Expert
            • Jan 2007
            • 4980

            #6
            You can look at http://gstreamer.freedesktop.org/

            Comment

            Working...