On 21/12/09 16:27, Paul Hartman wrote:
> On Sun, Dec 20, 2009 at 10:50 PM, Geoffrey Crowther
> <[email protected]> wrote:
>> cat sound.wav> /dev/dsp
> Did you try this instead:
>
> aoss cat sound.wav> /dev/dsp
That won't have any useful effect. aoss pre-loads a shared library
that overrides an open("/dev/dsp",...") and subsequent activity on the
resulting descriptor. In that case though, the open is performed by
the shell and /dev/dsp has already been opened by the time cat gets its
grubby mitts on it. What's more, cat doesn't do anything to set up the
device to match the header of sound.wav -- the only way you'd ever get
anything meaningful is if sound.wav happened to match the default state
of /dev/dsp. (Or /dev/dsp intrinsically analyzes a .wav header to
determine what to do, and I'm fairly sure it doesn't do that.)
jch
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user