Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Module SDL::Music not playing MP3s on Windows

by roho (Chancellor)
on Jan 06, 2007 at 17:12 UTC ( #593311=perlquestion: print w/replies, xml ) Need Help??

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

After reading the Audio programming portability post by starX in SOPW I downloaded the sample Tk program by zentara which uses the SDL module. I tried installing SDL from Activestate using ppm, but the SDL module does not exist in their respository. A check of their repository build chart shows SDL failed to build.

I found the SDL module in an alternate repository http://www.bribes.org/perl/ppmdir.html and installed it using ppm. The sample Tk program plays WAV files OK, but does not play MP3 files via the call to $mixer->play_music( $music, 100). I am at a loss as to what else I must do to get MP3 files to play on Windows. Any suggestions are most welcome.

Update:

Thanks to all for their suggestions, however I've come to the conclusion that it's just not worth the hassle to continue to try to put all the SDL pieces together to make it work. I can get what I need by starting Winamp with a list of MP3 filenames from my Perl program, plus my program now runs without the need of any non-core modules which makes distribution MUCH easier. Once again, my thanks to all.

"Its not how hard you work, its how much you get done."

  • Comment on Module SDL::Music not playing MP3s on Windows

Replies are listed 'Best First'.
Re: Module SDL::Music not playing MP3s on Windows
by Anonymous Monk on Jan 06, 2007 at 17:28 UTC
    The sample Tk program plays WAV files OK, but does not play MP3 files

    What errors does it throw? You're probably missing SMPEG

      It doesn't throw any error. It just silently executes the play_music line and goes on its way. BTW, what is SMPEG, what does it do, and where/how do I obtain and install it?

      Thanks, roho

      "Its not how hard you work, its how much you get done."

        Just google for 'SMPEG', it is a library for SDL which plays mp3's. I have no idea about getting it to run on windows.

        I'm not really a human, but I play one on earth. Cogito ergo sum a bum
        Make it throw an error.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://593311]
Approved by jfroebe
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2020-02-23 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (102 votes). Check out past polls.

    Notices?