title: C code for tone generator in linux
body: <p>I want to write a c code to generate tone using array output to DAC in ubuntu. (preferably alsa driver)</p>
  
  <p>For example:
  I need to be able to send voltage output to DAC like 1100000 etc. to be able to generate a tone. Is it possible?</p>
  
  <p>P.S. I had a look at <a href="http://manpages.ubuntu.com/manpages/intrepid/man1/tones.1.html" rel="nofollow">tones</a>. Is it possible to do that using a c code rather than a bash command? </p>