Lennart Poettering
860be2e70b
try to use send(,,MSG_NOSIGNAL) instead of write() wherever possible (which
...
will allow us to drop the SIGPIPE check). Cache the results of the last
write()/send() to make sure that we do not issue more than necessary system
calls.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1083 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-07-14 22:42:01 +00:00
Lennart Poettering
883ce83f92
add new test get-binary-name-test for testing pa_get_binary_name()
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1079 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-07-14 00:19:09 +00:00
Pierre Ossman
1342999b51
Make sure we do not use pthread_yield() on platforms that do not have them.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1045 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-20 14:26:52 +00:00
Pierre Ossman
6ca46f4d7a
Make interpol-test build on Win32 and non-pthread systems.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1043 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-20 13:49:30 +00:00
Lennart Poettering
f44ba09265
big s/polyp/pulse/g
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 21:53:48 +00:00
Lennart Poettering
6eabab6e2b
minor cleanups
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1028 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 12:20:10 +00:00
Lennart Poettering
9f59b4e1cd
add new test "interpol-test"
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1027 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 11:27:00 +00:00
Lennart Poettering
cc61b57a32
rename pa_simple_get_playback_latency() to pa_simple_get_latency() and allow its usage on capture streams
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@939 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-20 14:59:02 +00:00
Pierre Ossman
24a781992b
Don't include util.h from core-util.h as it is not needed by many users.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@929 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-18 07:04:41 +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
53a285e756
fix include line for "core-util.h"
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@923 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 20:44:55 +00:00
Lennart Poettering
ee35a063b2
add new channel map argument to pa_simple_new()
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@911 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 18:52:34 +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
4b6ab291a7
* modify pa_channel_map_init_auto() to take an extra argument specifying the standard to use (ALSA, AIFF, ...)
...
* add some more validity checks to pa_source_new(),pa_sink_new(),pa_sink_input_new(),pa_source_output_new()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@888 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 23:47:38 +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
e929aabc03
split of signal releasing into its own function and name it pa_threaded_mainloop_accept()
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@844 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-11 13:01:24 +00:00
Pierre Ossman
06e1867307
Use pa_msleep() to get platform independence.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@833 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-09 08:38:37 +00:00
Lennart Poettering
4b4c8fd152
* optionally, make pa_threaded_mainloop_signal() wait until the main thread took over control
...
* more header file comments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@831 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:58:02 +00:00
Lennart Poettering
5f9bbf005a
add support for reading audio data from a file instead of plain STDIN in pacat-simple.c
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@830 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:56:43 +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
Pierre Ossman
acb96c96fd
Fix some warnings caused by size_t having varying size.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@641 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-31 08:54:24 +00:00
Pierre Ossman
45baa6958e
Fix warning caused by missing return in main().
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@624 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-04 17:31:23 +00:00
Pierre Ossman
1bb14c3a1d
64-bit fixes.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@611 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-27 09:09:15 +00:00
Lennart Poettering
0858ef9bed
fix yet another pa_context_connect() occurance with regards to the flags parameter
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@535 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 23:30:53 +00:00
Lennart Poettering
e078f084e4
explcitily cast strings to make gcc shut up
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@522 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 16:09:25 +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
5eda18bf60
Cleaned up the includes after the restructuring. Indicate which headers are
...
public and which are internal through <> vs "".
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@500 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-17 12:10:58 +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
4ad2926eba
add a bunch of simple Makefile in the subdirs, just to make compilation with emacs easier
...
they are not intended to be distributed or anything.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@490 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 22:11:35 +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