I'm trying to write a simple alsa/gtk recording application in C that will record directly to an Ogg Vorbis file. (originally intended for recording my own dj sets)
It sort of "works" already. But I can't use the real-time scheduling when not running as root. It runs great as root, but as a normal user with normal scheduling I always get buffer underruns.
You can get the source at http://www.student.kuleuven.ac.be/~m...-0.0.3.tar.bz2
Capturing is done in capt_alsa.c (capture_auto)
I've looked into asynchroneous capturing which might be the answer, but I couldn't find enough documentation to figure it out myself.
This is my first C application to span more than a file or two, so any other suggestion welcome too