Coplan has asked for the wisdom of the Perl Monks concerning the following question:

First of all, I should say that I havn't used that many modules as of yet. Those that I have used had fairly decent documentation. So I am working on trying to do an MP3 player application (a jukebox of sorts), and I'd like to use the MAD libraries (for sound/sample quality).

I have the module installed, and everything seems to be working smoothly. I'm referencing the documentation (Read: cpan's Documentation), and I guess I just don't exactly understand it.

All I want to do is play song "test.mp3". Once I get that working, then I'll build up the jukebox around it with my playlists and what-not. The documentation for this module isn't very good, in my opinion.

On a side note, I'm using Audio::Play::MPG123 with mpg321, a replacement for mpg123 (confusing), which is symbolically linked on my machine. But I'm sure you would agree that it would be best to use the libraries directly. Any help, as always, would be appreciated.

--Coplan

  • Comment on Audio::mad -- any experience with this module?

Replies are listed 'Best First'.
Re: Audio::mad -- any experience with this module?
by jasonk (Parson) on Mar 25, 2003 at 18:23 UTC

    Audio::Mad provides an interface to mpeg decoding libraries, there is a big leap between decoding and playing that you will have to bridge on your own to go this route. The method you are currently using is probably the best way to go about it, unless you really want to get into the nuts and bolts of how an mp3 works.


    We're not surrounded, we're in a target-rich environment!
      Okay, I think I misunderstood its application and use then. At least I know that I'm relatively on the right track.

      I might see about writing a front-end for madplay, which is the player supporting the MAD library.

      Thanks for your help.

      --Coplan