On Fri, Jun 01, 2001 at 02:07:20AM -0400, Adam Theo wrote:
> hello, all. i am working on an alarm clock program, and am now looking
> into adding music playing ability for the alarms into it. I am wanting
> people's opinions on what module(s) to use to play music from my perl
> program.
>
> it is a perl/tk program, just in case that makes a difference, and
> hope to make it as cross-platform as possible, although if i have to,
> will constrict it to linux/unix.
>
> i am looking to play mp3's mostly, using a playlist, but also want
> module for playing audio CD's from the tray (or any other gadgets). i
> am open to other music formats, especially if there are any modules
> for playing net radio stations or such.
>
> i am really only looking for stable modules at this time, but would
> look into "newly-released" ones.
Good luck!
No, really, because if you find a solution I'd love to hear about it.
You can go to search.cpan.org and look for mp3. There are a few things
there, but only one for actually playing mp3s, and that is built on top
of the Xaudio SDK whose licence I don't particularly like.
I too have a requirement for playing mp3s in Perl/Tk apps on Windows and
Linux. On Linux I fork and exec a process to play using an external
program. I keep the pid around so I can kill it if I need to stop it.
On Windows that sort of thing is more difficult, but I do the best I
can. I'm currently (half) investigating building perl using MingW32 and
using Inline, but that's all pretty bleading edge stuff and certainly
doesn't fall into the category of using stable modules.
If anyone has any suggestion, please post ....
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net