[Klug-general] Linux Sound Programming

Kevin Groves kgroves at ksoft-electrical-projects.co.uk
Tue Mar 16 13:25:32 UTC 2010


I was recently going through some of my old projects and found some code
that will record sound through ALSA into a wav using C. If you want it I
can throw it over is was only around a page of code to record and
another to  play the file back.

Kev,

On 16/03/10 11:27, Peter Childs wrote:
> I'm trying to figure out how to do some relatively simple stuff with
> sound under Linux. I'm drawing a bit of a blank.
>
> There seams to be about 10 different ways of doing it, all of them
> with relatively poor docs and near no examples.
>
> I'm using Qt and C++ so Phonon looks like the best answer, however I
> need to record and phonon can't do that.
>
> GStreamer is looking like a good answer but its tied me in knots already.
>
> Pulse like it should do what I want and looks like the text book answer.
>
> Alsa and Portaudio are other options.
>
> I'm currently trying to write a small program that records, writes
> does what what it records and archives in into 15 minute time
> segments. (so MP3 or ogg encoding would be handy too) (This small
> program can be written in anything, it does not really need to link
> into the main Qt program....)
>
>
> I'm really just trying to work out where to start, and I've been
> trying for the last week now!
>
> Peter.
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
>   



More information about the Kent mailing list