logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: [Boston.pm] Audio::Simple??: msg#00066

Subject: Re: [Boston.pm] Audio::Simple??
Phil Mitchell wrote:
> ...all I want to do is play a soundfile.
> Am I missing an easy solution?

Isn't audio playback on your typical Linux box as trivial as copying an
audio file to the appropriate audio device? Google turned up examples
such as:

cat crash.au >/dev/audio
cat door_open.au > /dev/audio
cat door_open.au > /dev/dsp


And "The Linux Sound HOWTO":

http://www.djcj.org/LAU/guide/Sound-HOWTO-6.html

which details the various audio devices.


You should be able to use system() to invoke 'cat' from Perl, if you
want to be lazy, or open()/syswrite().

  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>