[SDL] Real-time audio generation
w.boeke at chello.nl
Fri Sep 19 07:11:17 PDT 2008
I am looking for a working example of an SDL audio application, where
you don't read the data from a wave file, but generate it real-time.
So e.g. you press a button, and hear a sinus tone. I know how to do it
with ALSA and with JACK, however when using SDL_OpenAudio() etc. the
only result was distorted noise.
It would be convenient if the audio would run in it's own thread,
because in a real application this always would be the case.
I searched the whole internet (with Google Code Search), but a simple
example I could not find.
More information about the SDL