[ubuntu-in] a unix puzzle

AlgoMantra algomantra at gmail.com
Sun May 25 04:08:49 BST 2008


if you try *$cat yes > /dev/audio*
you should hear what sounds like a sine wave,
but probably isn't a true sine. The reason why
this happens (and more tricks) are described
here:

http://everything2.com/e2node/catting%2520weird%2520things%2520to%2520%252Fdev%252Faudio

What I would like to do is send intended streams
of sound data from a C script to /dev/audio and hear them.
So I am looking for a solution where a simple wave
can be generated. Anyone? You'd need to know
how exactly /dev/audio interprets data as amplitude.
That's the key.

Anyways, if you can produce a sine, you can produce
(theoretically) any sound in the universe using a bit
of additive fourier theory.




-- 
------- -.-
1/f ))) --.
------- ...
http://www.algomantra.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-in/attachments/20080525/048eeab5/attachment.htm 


More information about the ubuntu-in mailing list