All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH] Transparent network support through polypaudio
@ 2006-02-13 14:53 Pierre Ossman
  2006-02-14  9:47 ` Clemens Ladisch
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Pierre Ossman @ 2006-02-13 14:53 UTC (permalink / raw)
  To: alsa-devel, mzcbylcnhqvb

(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

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2006-03-07 14:01 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-13 14:53 [RFC][PATCH] Transparent network support through polypaudio Pierre Ossman
2006-02-14  9:47 ` 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

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.