I'm a newbie to audio in linux. I can code in C, and I know that <br>if you $cat /dev/dsp you can see your microphone feeding weird<br>shit into this sound device. I've also read that this device is encoded<br>as 8-bit unsigned, and I know the binary math of that format. I'm<br>
currently coding on Ubuntu Hardy. <br><br>I'm looking for some helpful tips on two simple processes, for which I'll be very grateful: <br><br>1. What are these weird "{{PP--"characters in /dev/dsp and how do I convert<br>
them to some numerical form that I can understand and play with? Are they ASCII representations of 8-bit unsigned numbers? How do I convert this to<br>samples? (I know a "little" DSP theory, but kindly assume that I'm not very good). <br>
<br>2. I'd like to feed a pure sine wave to /dev/audio, and then another wave<br>and mix them together to hear some beats. Basically, I want to try out<br>raw additive synthesis using C and feeding cool arrays to either /dev/audio or /dev/dsp.<br>
<br>Any help would be appreciated, and as for karma, you know you're only<br>going to profit. <br><br clear="all">ta-da,<br>fadereu<br>------- -.-<br>1/f ))) --.<br>------- ...<br><a href="http://www.algomantra.com">http://www.algomantra.com</a>