To be written in C.
I know that for Linux there are several libraries that could be used to do this much more easily; I'm doing this completely as a learning exercise.
I want to avoid Alsa and Jack, etc. altogether; i.e., pretend they don't exist. What are the steps involved? How do I connect to my sound card's driver? How do I discover how to "talk to" it so that it will play a simple signal (a sine wave) through the computer's loudspeakers? What does it expect to hear from me?
Some thoughts I had that may or may not be correct:
- determine the type of soundcard I have
- find the driver documentation (or the code itself)
- study and
#includethe driver's header - write code that produces a sine wave at 440Hz/half-maximum amplitude
- be done
Aucun commentaire:
Enregistrer un commentaire