[alsa-devel] Sound streaming application: which device to use?

Colin Guthrie gmane at colin.guthr.ie
Thu Jun 4 16:30:01 CEST 2009


'Twas brillig, and Lex Wassenberg at 04/06/09 12:28 did gyre and gimble:
> I'm working on an application which receives sound chunks via an IP
> connection, and it should use the local sound card to make this sound
> audible. Up to now it used OSS, but there were some problems with
> that, so I'm busy with rewriting the application to ALSA. The sound is
> 16-bit stereo, sampled at 8000 Hz, and it comes in chunks of 1024
> frames. I managed to get things more or less working, but there are
> still some things unclear to me.

Depending on the use case of your application, have you considered 
writing a pulseaudio module instead.

Pulseaudio already integrates with wireless and network systems for 
audio, notably bluetooth, Apple RAOP/Airtunes, and it's uPnP media 
stuff, RTP streams and it's own network protocol.

It would be fairly easy to hook up a remote device like this and have it 
"play" the sound via pulseuaudio.

You'll be needing some kind of daemon/background process anyway to 
listen on the network so this may be a better construct for you to work 
with rather than having to worry to start your "listener" app.

There may be many reasons why this wouldn't work for you but figured it 
was worth mentioning.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]



More information about the Alsa-devel mailing list