Prerecord is sound recording daemon for GNU/Linux system. It uses OSS (records from /dev/dsp ) and can compress on-the-fly to MP3/FLAC/Vorbis..., record to several files at one time and many more. Client in Qt included, or you can write your own one.