[Klug-general] Linux Sound Programming

Kevin Groves kgroves at ksoft-electrical-projects.co.uk
Wed Mar 17 13:18:14 UTC 2010


OK I will dig up the code and post. As I say it's quite short so should
not be an issue as a posting.

Kev,

On 17/03/10 06:17, Thomas Edward Groves wrote:
> I know this is a private conversation but I also would like to see
> some *simple* code for handling sound.
>
> Pretty please?
>
> Tom Groves
>
> ----- Original Message -----
> From: Kevin Groves <kgroves at ksoft-electrical-projects.co.uk>
> To: Kent Linux User Group - General Topics <kent at mailman.lug.org.uk>
> Sent: Tuesday, March 16, 2010 1:25 PM
> Subject: Re: [Klug-general] Linux Sound Programming
>
>
>   
>> 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
>>>
>>>
>>>       
>> _______________________________________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/kent
>>
>>
>>     
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kgroves.vcf
Type: text/x-vcard
Size: 319 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/kent/attachments/20100317/19f31284/attachment.vcf 


More information about the Kent mailing list