mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
add simple ptorocol with unix
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@25 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
56f8c953dd
commit
b4e3f5c5c5
3 changed files with 19 additions and 6 deletions
|
|
@ -23,7 +23,8 @@ bin_PROGRAMS = polypaudio
|
|||
pkglib_LTLIBRARIES=libprotocol-simple.la module-simple-protocol-tcp.la \
|
||||
libsocket-server.la module-pipe-sink.la libpstream.la libiochannel.la \
|
||||
libpacket.la module-oss.la module-oss-mmap.la liboss.la libioline.la \
|
||||
libcli.la module-cli.la libtokenizer.la libdynarray.la
|
||||
libcli.la module-cli.la libtokenizer.la libdynarray.la \
|
||||
module-simple-protocol-unix.la
|
||||
|
||||
polypaudio_SOURCES = idxset.c idxset.h \
|
||||
queue.c queue.h \
|
||||
|
|
@ -81,10 +82,16 @@ libtokenizer_la_SOURCES = tokenizer.c tokenizer.h
|
|||
libtokenizer_la_LDFLAGS = -avoid-version
|
||||
libtokenizer_la_LIBADD = libdynarray.la
|
||||
|
||||
module_simple_protocol_tcp_la_SOURCES = module-simple-protocol-tcp.c
|
||||
module_simple_protocol_tcp_la_SOURCES = module-simple-protocol.c
|
||||
module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS $(AM_CFLAGS)
|
||||
module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
|
||||
module_simple_protocol_tcp_la_LIBADD = libprotocol-simple.la libiochannel.la
|
||||
|
||||
module_simple_protocol_unix_la_SOURCES = module-simple-protocol.c
|
||||
module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS $(AM_CFLAGS)
|
||||
module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
|
||||
module_simple_protocol_unix_la_LIBADD = libprotocol-simple.la libiochannel.la
|
||||
|
||||
module_pipe_sink_la_SOURCES = module-pipe-sink.c
|
||||
module_pipe_sink_la_LDFLAGS = -module -avoid-version
|
||||
module_pipe_sink_la_LIBADD = libiochannel.la
|
||||
|
|
|
|||
|
|
@ -9,8 +9,13 @@ int module_init(struct core *c, struct module*m) {
|
|||
struct socket_server *s;
|
||||
assert(c && m);
|
||||
|
||||
#ifdef USE_TCP_SOCKETS
|
||||
if (!(s = socket_server_new_ipv4(c->mainloop, INADDR_LOOPBACK, 4712)))
|
||||
return -1;
|
||||
#else
|
||||
if (!(s = socket_server_new_unix(c->mainloop, "/tmp/polypsimple")))
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
m->userdata = protocol_simple_new(c, s, PROTOCOL_SIMPLE_PLAYBACK);
|
||||
assert(m->userdata);
|
||||
9
src/todo
9
src/todo
|
|
@ -1,14 +1,15 @@
|
|||
-
|
||||
- simple control protocol: kill client/input/output; set_volume
|
||||
- cli protocol
|
||||
- native protocol/library
|
||||
- simple control protocol: kill client/input/output; set_volume
|
||||
- resampling
|
||||
- esound protocol
|
||||
- config-parser
|
||||
- record-testing
|
||||
- config parser
|
||||
- record testing
|
||||
-- 0.1
|
||||
- optimierung von rebuild_pollfds()
|
||||
- future cancellation
|
||||
- client-ui
|
||||
- clip cache
|
||||
|
||||
drivers:
|
||||
- libao
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue