From: Pierre Ossman <ossman@cendio.se>
To: alsa-devel@alsa-project.org, mzcbylcnhqvb@0pointer.de
Subject: [RFC][PATCH] Transparent network support through polypaudio
Date: Mon, 13 Feb 2006 15:53:42 +0100 [thread overview]
Message-ID: <43F09D76.9060004@cendio.se> (raw)
(Repost with attachment as link to avoid size restriction.)
Hi!
I've implemented an ALSA plugin that allows any well-behaved ALSA
application transparently use the Polypaudio network protocol.
It is my desire to have this included in ALSA (-lib preferably) so that
it will be included in most dists. So I'm posting this first version for
review. :)
It only supports playback at the moment. Polypaudio will undergo some
changes to allow a capture implementation, but that's not ready yet.
I'll do a mixer plugin in the coming days.
Some comments on the design. Polypaudio's lib requires a decent mainloop
abstraction. But ALSA does not force, or even allow, applications to
provide one (nothing wrong with that, it keeps the API simple). It meant
a creative solution was required to get this plugin running.
The solution is a design borrowed from the Avahi project. A second
thread is started that does the poll() call. Communication with the main
thread is done through a socket pair, and that file descriptor is fed to
the application to poll. Since some applications do not use these in a
sane manner (I'm looking at you mplayer) the mainloop abstraction is
also run on most of the ALSA plugin callbacks.
Code:
http://www.cendio.se/~ossman/alsa-polyp-1.0.10.tar.bz2
This is also not a patch per se, but I needed some tag to get people to
notice that code is included. :)
You will need to check out polypaudio from svn to compile and use this.
Also, the repository path on polypaudio's web page is out of date. This
is the current uri:
svn://svn.0pointer.de/polypaudio/trunk
--
Pierre Ossman Telephone: +46-13-21 46 00
Cendio AB Web: http://www.cendio.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
next reply other threads:[~2006-02-13 14:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 14:53 Pierre Ossman [this message]
2006-02-14 9:47 ` [RFC][PATCH] Transparent network support through polypaudio Clemens Ladisch
2006-02-14 10:35 ` Pierre Ossman
2006-02-14 14:35 ` Clemens Ladisch
2006-02-14 15:48 ` Pierre Ossman
2006-02-14 20:24 ` latency issue with mplayer ALSA plugin Thierry Vignaud
2006-02-15 9:30 ` Clemens Ladisch
2006-03-01 4:09 ` [RFC][PATCH] Transparent network support through polypaudio Lee Revell
2006-03-01 8:32 ` Clemens Ladisch
2006-03-01 17:00 ` Lee Revell
2006-03-07 14:01 ` Pierre Ossman
2006-02-15 9:44 ` Pierre Ossman
2006-02-17 19:05 ` Pierre Ossman
2006-02-21 16:15 ` Takashi Iwai
2006-02-21 16:38 ` Pierre Ossman
2006-02-21 16:41 ` Takashi Iwai
2006-02-22 9:48 ` Pierre Ossman
2006-02-22 15:41 ` Takashi Iwai
2006-02-23 13:02 ` Pierre Ossman
2006-02-23 14:34 ` Takashi Iwai
2006-02-24 13:22 ` Pierre Ossman
2006-02-24 13:57 ` Takashi Iwai
2006-02-24 14:03 ` Pierre Ossman
2006-02-27 8:09 ` Pierre Ossman
2006-02-27 19:22 ` Takashi Iwai
2006-02-28 8:11 ` Pierre Ossman
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=43F09D76.9060004@cendio.se \
--to=ossman@cendio.se \
--cc=alsa-devel@alsa-project.org \
--cc=mzcbylcnhqvb@0pointer.de \
/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.