On 4/8/06, Ryan Perry <[EMAIL PROTECTED]> wrote: > I want to write a program that will play an audio file. How can I do > this with perl? An external library or program? > > Thanks! > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> >
That depends completely on your system. There are perl modules for DSP, Ao, OSS, ESD, MPD interfaces and probably others. Audio::Play may also support your hardware. Search CPAN for modules that might help you interface with the audio drivers and/or subsystems you have access to. You can also just use perl as a wrapper for whatever CLI audio player you have installed, or use Mac::Glue, Win32::OLE, etc., to interface with whichever audio player you normally use on your platform. the first step, though, it to find out what drivers/subsystems/applications are available on your system. HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org values of β will give rise to dom!
