From: Colin Guthrie <gmane@colin.guthr.ie>
To: alsa-devel@alsa-project.org
Subject: Re: Sound streaming application: which device to use?
Date: Thu, 04 Jun 2009 15:30:01 +0100 [thread overview]
Message-ID: <h08lp9$qmo$1@ger.gmane.org> (raw)
In-Reply-To: <45c981ab0906040428v3910cbcfq7e3024b23f6653e1@mail.gmail.com>
'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/]
next prev parent reply other threads:[~2009-06-04 14:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 11:28 Sound streaming application: which device to use? Lex Wassenberg
2009-06-04 14:30 ` Colin Guthrie [this message]
2009-06-09 14:01 ` Lex Wassenberg
2009-06-10 2:42 ` Lee Revell
2009-06-10 9:42 ` Lex Wassenberg
2009-06-10 10:02 ` Pavel Hofman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='h08lp9$qmo$1@ger.gmane.org' \
--to=gmane@colin.guthr.ie \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.