Re: cat sound.wav > /dev/dsp Not Working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/12/09 16:27, Paul Hartman wrote:
> On Sun, Dec 20, 2009 at 10:50 PM, Geoffrey Crowther
> <gcrowther@xxxxxxxxxx>  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
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux