Lennart Poettering
71227de8b2
correct some types
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@714 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-15 15:25:53 +00:00
Lennart Poettering
86ad60185a
minor beautification
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@711 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-14 23:46:32 +00:00
Lennart Poettering
010c049db2
include in-flux resampled chunk in latency calculations of playback streams
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@705 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-13 18:27:35 +00:00
Lennart Poettering
9854cfc146
hmm, nothing important
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@703 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-13 17:53:43 +00:00
Lennart Poettering
77c2a1f561
protocol change: don't send stream buffer size in latency update. This data is redundant, since it can be calculated from write_index - read_index anyway
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@685 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 17:12:16 +00:00
Lennart Poettering
a0c7ca00e7
when flushin a memblockq, set the write index to the read index
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@683 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 17:09:51 +00:00
Lennart Poettering
b4a547419c
when doing software volume adjustments, don't use the volume value as linear factor, but pass it through pa_sw_volume_to_linear() first.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@664 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-08 00:09:28 +00:00
Lennart Poettering
f6d95b7291
add new introspection data field for sinks/sources: a flags field which specifies whether the sink/source supports hw volume control and latency querying
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@661 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-07 23:02:48 +00:00
Pierre Ossman
add110bd10
Some memcpy arithmetic that wasn't removed when doing the redesign to update
...
the data pointer instead.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@654 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-07 06:29:59 +00:00
Lennart Poettering
cc302f2d17
remove queue length field from latency request (server side)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@647 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-07 00:23:38 +00:00
Lennart Poettering
1be00173c1
change pa_gettimeofday() to return a pointer to the struct timeval*, instead of an int
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@645 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-06 23:31:40 +00:00
Lennart Poettering
73035a82a7
* set IPV6_V6ONLY for IPv6 sockets, to avoid warning when both ipv6 and the ipv4 sockets try to bind to the same port
...
* enable SO_REUSEADDR only on platforms that support it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@643 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-06 23:28:15 +00:00
Lennart Poettering
ac3d11f833
remove some GCC warnings introduced by improperly casting to (char*) instead of (const char*)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@642 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-06 20:17:27 +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
3ef4970142
We filled the volume with the wrong channel count (we used the input, not
...
the output) causing static. Also swapped the comments since they were
misplaced.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@636 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-08 13:00:46 +00:00
Pierre Ossman
64571374b3
Trying to listen on an IPv6 socket by default and only do IPv4 if that fails
...
(which it doesn't most of the time) is terribly confusing. What the user
most likely wants is for it to listen to both IPv4 and IPv6 and gracefully
continue if only of them succeed.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@633 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-07 16:02:34 +00:00
Pierre Ossman
4e522940ff
Alignment safe protocol handling in esound module.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@622 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-04 13:55:40 +00:00
Pierre Ossman
bc97b29447
Negotiate protocol version between server and client. Will allow smoother
...
protocol modifications in the future.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@621 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-02 21:56:15 +00:00
Pierre Ossman
7f04568444
typo fix
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@617 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-02 14:46:31 +00:00
Lennart Poettering
8cf9b972e2
protocol changes for new latency API (partial!)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@616 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-03-02 14:22:25 +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
Pierre Ossman
f59bc1ff2b
Fix some signed/unsigned warnings.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@610 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-27 08:58:29 +00:00
Pierre Ossman
e37f008a03
Function prototype didn't match actual definition.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@609 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-27 08:57:41 +00:00
Lennart Poettering
4358977415
* Add new "auth-group=" parameter to protocol-native-unix
...
* Rename "public=" argument of protocol-{esound,native} to "auth-anonymous"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@601 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 17:14:23 +00:00
Pierre Ossman
25bcc106d0
Do an explicit cast to shut up gcc.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@600 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 16:29:05 +00:00
Pierre Ossman
c3a26709cb
This wasn't supposed to be checked in.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@599 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 16:28:29 +00:00
Pierre Ossman
b418809da1
Wrong variable used for port.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@598 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 16:28:02 +00:00
Pierre Ossman
9f1b793689
Tweak the handling of missing credential support so that we minimise non-POSIX
...
headers in our headers.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@597 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 16:27:39 +00:00
Lennart Poettering
3f264b2c4a
add support for authentication using SCM_CREDENTIALS
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@596 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 15:12:42 +00:00
Lennart Poettering
c2304d6872
add a few more validity checks to protocol-esound
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@589 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-24 00:49:21 +00:00
Pierre Ossman
04c8926739
Mute switch for sinks and sources. This is independent of the volume
...
setting (similar to ALSA).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@587 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-23 12:04:31 +00:00
Pierre Ossman
4e8faa6deb
inet_pton expects in[6]_addr structures, nothing else.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@583 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-23 09:37:44 +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
4a64b0d116
change pa_log() and friends to not require a trailing \n on all logged strings
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@574 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-23 02:27:19 +00:00
Lennart Poettering
57713350d7
fix source volume adjustment: copy memchunk before changing the volume of it
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@572 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-23 01:17:54 +00:00
Lennart Poettering
708c650ad1
enforce maximum memblockq length for clients
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@571 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 21:02:27 +00:00
Lennart Poettering
ecd346fa9a
add listen= parameter to tcp protocol modules
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@569 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 20:44:37 +00:00
Lennart Poettering
a99e46dd0b
rework parameter validity checking in protocol-native server side
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@563 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-22 18:54:21 +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
6169bd81aa
add new utility function pa_endswith()
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@555 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-21 23:34:50 +00:00
Lennart Poettering
13b4213274
remove left-over log line in protocol-esound.c
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@554 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-21 23:34:22 +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
a8e85ba688
remove a superfluous log line
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@534 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 23:30:15 +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
5d253cd30c
Fix some warnings by making sure we have the right signedness on things.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@525 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 16:21:19 +00:00
Lennart Poettering
4566d56e31
* Make typdefs for the pa_context callback prototypes
...
* s/pa_context_notify_cb/pa_context_notify_cb_t/g
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@521 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-20 16:01:53 +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
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