Commit graph

86 commits

Author SHA1 Message Date
Pierre Ossman
a034b61eb5 Fix which headers get installed for libpolyp.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@936 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-19 07:38:35 +00:00
Pierre Ossman
c811351d28 Sort source files.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@935 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-19 07:29:34 +00:00
Pierre Ossman
0796ead0db Move timeval calculation functions into their own file.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@926 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-18 06:45:43 +00:00
Lennart Poettering
c47e937011 split polypcore/util.[ch] into polypcore/core-util.[ch] and polyp/util.[ch]
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@917 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 20:09:57 +00:00
Pierre Ossman
7ca25e58e9 Move utf8 to the public part (libpolyp).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@909 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 17:30:49 +00:00
Pierre Ossman
d9cc2cfcb9 Move xmalloc to the public side (libpolyp).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@908 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 16:34:18 +00:00
Lennart Poettering
55215597c4 * add new configure option --with-module-dir=
* drop version suffix from soname of libpolyp and friends
* add version suffix by default to $(modlibexecdir)


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@885 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 17:54:33 +00:00
Lennart Poettering
c12206b864 * remove .a files from the modules directory after installation
* rename $(modlibdir) to $(modlibexecdir) in accordance with secion 11.2 of the automake docs ("The two parts of install")


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@883 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 15:29:58 +00:00
Lennart Poettering
53595938d0 add new test programme utf8-test.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@880 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 00:46:03 +00:00
Lennart Poettering
7a92f361c6 undo r868
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@871 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-15 12:45:55 +00:00
Pierre Ossman
9c38744cdd module-volume-restore uses regexp() so make sure it's only built on systems
that have it.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@868 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-15 06:41:27 +00:00
Lennart Poettering
bf52fb93b4 add utf8 validity checking API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@861 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 16:02:09 +00:00
Lennart Poettering
b3e16559fc add new module module-volume-restore which saves and restores volume of playback streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@859 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 00:41:56 +00:00
Pierre Ossman
48d66cd5e8 Handle pipes on platforms where they are non-existant of broken.
We do this by creating a TCP socket pair instead of a normal pipe. Since
Windows isn't UNIX-y enough to support read()/write() on sockets, we also
need a wrapper to handle read() vs recv() and write() vs send().


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@840 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-11 11:08:58 +00:00
Pierre Ossman
4e71f20d6c Add stubs for the threaded main loop so that we can compile it on
non-supported platforms (still can't run it though).


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@834 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-09 08:39:26 +00:00
Pierre Ossman
1438bd49dc Windows doesn't have POSIX thread. ifdef out things for now.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@824 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-02 08:41:41 +00:00
Lennart Poettering
9e60bad5c3 add new threaded main loop implementation (with test/example)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@823 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-30 23:34:17 +00:00
Lennart Poettering
5f7cc0c870 add new test 'channelmap-test'
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@800 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 14:34:45 +00:00
Lennart Poettering
834506318d * Merge build system patch from Igor Zubkov
* Build libparseaddr.so before libsocket-client.so


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@781 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 14:29:32 +00:00
Lennart Poettering
60008cb115 fix CFLAGS for jack modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@753 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 19:12:53 +00:00
Lennart Poettering
65fd9b315b fix make distcheck
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@751 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 18:18:28 +00:00
Lennart Poettering
a80912917b build jack source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@747 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 17:19:41 +00:00
Pierre Ossman
2d6ab01fbb We need to emulate sendmsg/recvmsg to support rtp on Windows. Will do
this some time in the future.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@740 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 13:36:59 +00:00
Lennart Poettering
4482e6867d add new JACK sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@735 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-17 00:11:04 +00:00
Lennart Poettering
b04a4e65ca rename module-rtp-monitor to module-rtp-send
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@726 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 10:56:45 +00:00
Lennart Poettering
f1ddf05236 * add RTP/SAP/SDP reciever module
* use server cookie as RTP SSRC
* enable SVN keywords
* add new option "loop" for RTP sender module


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@716 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 00:16:53 +00:00
Lennart Poettering
e0e2b8fdb6 * ignore some more files
* make necessary changes to Makefile to compile RTP module


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@713 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-14 23:49:12 +00:00
Lennart Poettering
1f7a008f43 add new configure option to enable preloading even on architectures that support dlopen(). Useful for debugging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@700 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-13 17:32:10 +00:00
Pierre Ossman
6cc11fbfc3 Handle the new latency protocol. This is just a quick fix and does not
handle the new memblockq system.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@618 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-02 16:32:36 +00:00
Pierre Ossman
adad7dc672 Add inet_pton emulation for platforms that lack it. Only support IPv4 at
this point.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@582 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-23 09:30:31 +00:00
Lennart Poettering
361f16718f unbreak Makefile.am
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@565 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 19:00:27 +00:00
Lennart Poettering
63165d83cb todo test
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@564 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 18:59:27 +00:00
Pierre Ossman
cc2178e5c3 Support for setting volume on sources.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@560 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 14:11:23 +00:00
Lennart Poettering
8c80dd6302 * Don't build seperate ipv4/ipv6 versions of the protocol plugins
* Instead try IPv6 and if that fails fall back to IPv4


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@548 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-21 01:08:53 +00:00
Lennart Poettering
4f511bb7f0 * Get rid of libpolyp-mainloop
* Remove pkg-config file of polyplib-error


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@546 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-21 00:37:22 +00:00
Lennart Poettering
56ce62a020 build dllmain.c only on win32 (makes gcc shut up a little more)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@539 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 23:40:49 +00:00
Lennart Poettering
b008941f82 fix moddir
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@532 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 22:41:20 +00:00
Lennart Poettering
71b3bff681 * modify pa_context_exit_daemon() to return a pa_operation object
* add callback prototypes to all introspection functions in client lib
* add proper validity checking and error handling to all functions in the client lib
* other minor cleanups
* todo update


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@531 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 22:41:02 +00:00
Pierre Ossman
e9658bb997 util.c uses some socket functions so we need winsock on Windows.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@514 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 10:38:57 +00:00
Lennart Poettering
304449002c 1) Add flexible seeking support (including absolute) for memory block queues and playback streams
2) Add support to synchronize multiple playback streams
3) add two tests for 1) and 2)
4) s/PA_ERROR/PA_ERR/
5) s/PA_ERROR_OK/PA_OK/
6) update simple API to deal properly with new peek/drop recording API
7) add beginnings of proper validity checking on API calls in client libs (needs to be extended)
8) report playback buffer overflows/underflows to the client
9) move client side recording mcalign stuff into the memblockq 
10) create typedefs for a bunch of API callback prototypes
11) simplify handling of HUP poll() events

Yes, i know, it's usually better to commit a lot of small patches instead of a
single big one. In this case however, this would have contradicted the other
rule: never commit broken or incomplete stuff.

*** This stuff needs a lot of additional testing! ***


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@511 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 04:05:16 +00:00
Pierre Ossman
45700da4eb Have a memblock queue on the client side during recording. This makes the
record callback optional in stead of mandatory.

For applications that wish to retain the old behaviour, simply call
pa_stream_peek() followed by pa_stream_drop() in the callback.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@507 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 15:42:47 +00:00
Pierre Ossman
162a95d566 Module needs stuff in libpolypcore.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@505 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 13:18:53 +00:00
Pierre Ossman
da665d5e61 Integrate error routines into libpolyp. Not much point in having this as a
separate library.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@502 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 13:08:03 +00:00
Pierre Ossman
1eae42f7ed Make sure that all polypcore headers are installed.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@501 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 12:34:44 +00:00
Pierre Ossman
c278bc6c37 Move the util libs to the modules section since they're in that directory.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@499 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 09:12:06 +00:00
Lennart Poettering
5ccf4145bc * rename polypcore/subscribe.[ch] to polypcore/core-subscribe.[ch] to avoid confusion with polyp/subscribe.[ch]
* same for scache.[ch]


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@496 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 23:13:27 +00:00
Lennart Poettering
22c8cebb85 drop polyplib- prefix from client library files
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@492 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 22:43:59 +00:00
Lennart Poettering
c75972f54a move alsa-util.[ch], oss-util.[ch] and howl-wrap.[ch] to the modules directory since they are just helper source used exclusively by the modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@489 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 22:08:06 +00:00
Lennart Poettering
b56b9e50e0 * svn:ignore some files
* move configuration files to the directories they belong to
* built esd-compat.sh in the src/ dir


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@488 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 21:37:20 +00:00
Pierre Ossman
e205b25d65 Reorganised the source tree. We now have src/ with a couple of subdirs:
* daemon/ - Contains the files specific to the polypaudio daemon.
 * modules/ - All loadable modules.
 * polyp/ - Files that are part of the public, application interface or
   are only used in libpolyp.
 * polypcore/ - All other shared files.
 * tests/ - Test programs.
 * utils/ - Utility programs.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@487 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 19:19:58 +00:00
Renamed from polyp/Makefile.am (Browse further)