[ale] Generating sound
Chuck Huber
chuck at cehuber.org
Mon May 7 14:06:01 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Okay, admittedly I'm new to using sound cards beyond playing alert sounds and
hooking up speakers for video/audio playback.
I need to generate a 1kHz tone and
a) emit this through a sound card to speakers
and b) convert this to an MP3 file.
I can write a quick C program that will generate integer values in a sinusoidal
fashion. However, getting these values to a sound card is a mystery to me at
this point. Perhaps I'm thinking too low of a level - maybe the sound card will
accept a command to generate a tone at a certain frequency. Don't know.
Additionally, I'll need to capture the A/D input from the line input jack. I
*don't* need to do both at the same time.
If anyone could point me in a direction to get started, it'd be greatly appreciated.
Thanks,
- Chuck
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGP2qJiR3HaLbYCa4RAlSHAJ9dow6pwIMlVvkvldio5hDu/bpaoACfe2oH
ALhI7V7XwTzs5zmNg0qQZgk=
=KQ/O
-----END PGP SIGNATURE-----
More information about the Ale
mailing list