On Tue, 2005-12-20 at 18:30 -0500, Tom Metro wrote: > 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
That thing is 6 years old! The most recent version is still 4 years old. Even the version of the howto you linked says, regarding sending raw .au files to /dev/dsp or /dev/audio: This will generally give poor results though, and using a program such as 'play' is preferable, as it will recognize most file types and set the sound card to the correct sampling rate, etc. You didn't even address structured or encoded files such as .wav or .mp3, the most common audio formats, which will require an external program. /dev/dsp and /dev/audio are part of the old OSS sound API. The kernel currently defaults to ALSA which is much more modern and nice. OSS will never go away but it can't hurt to start using the new tools. 'aplay', previously mentioned by Dan Boger, will play a wav file through ALSA. 'mpg321' can play an mp3 file through ALSA (or OSS). -- Jeremy _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

