Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Playing MP3 file?

by benn (Vicar)
on Oct 01, 2003 at 12:16 UTC ( #295584=note: print w/replies, xml ) Need Help??

in reply to Playing MP3 file?

Corion's advice is sound (pun unintentional :)), but if you wanted to try the 'full' approach, you could have a look at a combination of LAME and Audio::MPEG. There are LAME binaries for Windows available, and Audio::MPEG's author seems fairly confident that it *should* work, although he hasn't tested on anything 'cept Linux.

Included in the Audio::MPEG docs is an MP3->WAV routine which may come in handy.

Cheers, Ben.

Replies are listed 'Best First'.
Re: Re: Playing MP3 file?
by Arbogast (Monk) on Oct 01, 2003 at 14:50 UTC
    2 methods I use to play an MP3 in my program on Windows XP with Perl.

    a> I don't have the code handy, but you can launch Windows Media Player with a playlist as a Win32 process. I never learned how to make a WMP playlist from Perl, :(.

    b> The way I do it now in my Perl programs is to embed the MP3 in a SWF file in a local html file and play it through the Internet Explorer. (Then you can make a pretty album cover to display while the music plays.) Just launch the Internet Explorer with html file as argument with win32 process.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://295584]
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?
[Corion]: TCLion: Whee ;)
[TCLion]: need to put like this : 2017-02-20 09:30:53
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly
[TCLion]: when I put the date together it looks like : 2017-Feb-24 (month is the problem)
[1nickt]: good luck, then.
[TCLion]: looking at DateTime documentation in monastery now

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-03-23 14:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (288 votes). Check out past polls.