Commit graph

1565 commits

Author SHA1 Message Date
Lennart Poettering
40b66a0be9 Implement "early requests" mode.
PA_STREAM_EARLY_REQUESTS is a new flag that will modify buffering metric
selection behaviour a bit. This code is good for broken ALSA/OSS clients that
ignore 'readability' on the fds in question and schedule audio via usleep()
instead.
2008-09-03 18:31:46 +02:00
Lennart Poettering
99d5ec6c93 Rework pa_machine_id() a bit
Guarantee this function never fails, use POSIX gethostid as last resort. Add
comments.
2008-09-03 18:30:27 +02:00
Lennart Poettering
82ea8dde8a avoid rounding errors on requested buffering metrics 2008-09-01 02:41:03 +02:00
Lennart Poettering
002e7a703a output relative timestamps in addition to absolute timestamps when logging 2008-09-01 02:39:27 +02:00
Lennart Poettering
34bcba63a2 remove a few more gcc warnings 2008-08-30 01:22:41 +02:00
Lennart Poettering
13018d62c1 fix a few compiler warnings on older gcc 2008-08-29 23:53:55 +02:00
Lennart Poettering
506eacc922 reword amd64 message 2008-08-29 21:46:12 +02:00
Lennart Poettering
1acf394356 change default log level for the library to PA_LOG_ERROR to avoid spamming to stderr more often 2008-08-29 21:43:50 +02:00
Lennart Poettering
086fa95407 downgrade a few messages 2008-08-29 21:43:10 +02:00
Lennart Poettering
a45440d5c9 the native atomic ops implementation for amd64 seems to work fine 2008-08-29 21:42:09 +02:00
Lennart Poettering
ca38446e6b Change return value of cmpxchg atomic op to pa_bool_t 2008-08-29 20:24:46 +02:00
Lennart Poettering
bdcb3a493c optionally add timestampts to every line logged 2008-08-29 19:33:06 +02:00
Lennart Poettering
450fe170a5 fix up latency before calling into stream code, to make sure we don't ask for too much data to early 2008-08-29 01:20:25 +02:00
Lennart Poettering
6723699ef8 rework pa_ulog2 and base it on __builtin_clz if available, make pa_make_power_of_two based on it 2008-08-29 01:13:50 +02:00
Lennart Poettering
bb8263be6f add byte-to-usec and usec-to-byte converters that round up, not down 2008-08-28 17:53:01 +02:00
Lennart Poettering
0a1f654c20 call close() in a loop to catch EINTR 2008-08-26 15:44:55 +02:00
Lennart Poettering
dc9b8dce30 add a few missing casts 2008-08-20 03:33:06 +03:00
Lennart Poettering
6baec251d2 use final glibc eventfd() instead of our homegrown syscall invocations 2008-08-19 23:18:20 +02:00
Lennart Poettering
8e71787551 rework cpu limit logic to use monotonic instead of wall clock time 2008-08-19 23:03:37 +02:00
Lennart Poettering
961aa185e3 simplify pa_start_child_for_read by using pa_close_all()/pa_reset_sigs()/pa_unblock_sigs() 2008-08-19 22:49:14 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00
Lennart Poettering
3d2d6ca958 Merge commit 'flameeyes/autoconf-2.62' 2008-08-18 23:52:44 +02:00
Lennart Poettering
46f0f9ed8b a few modernizations 2008-08-18 20:07:57 +02:00
Lennart Poettering
5cc2187bec add some code to make invalid valgrind warnings go away 2008-08-18 19:55:55 +02:00
Lennart Poettering
ec62596f49 allow clients to not specify the volume for their streams 2008-08-18 17:49:18 +02:00
Lennart Poettering
c35d1bbec3 rework validity checking of sink/source/... names 2008-08-18 17:48:04 +02:00
Lennart Poettering
d315dcf5d9 save a bit of memory 2008-08-18 17:46:57 +02:00
Lennart Poettering
916899a973 pass force_refresh=FALSE to all volume/mute read invocations 2008-08-13 13:59:50 +02:00
Lennart Poettering
3ec4a5db99 rework volume/mute APIs: split out pa_xx_set_soft_volume() and add force_refresh argument to read functions 2008-08-13 13:55:58 +02:00
Lennart Poettering
7c5a95950e initialize IP ACLs properly 2008-08-11 19:46:28 +02:00
Lennart Poettering
c4dff4d416 otpimize mixing code a bit by moving a few checks out of the inner loops 2008-08-11 18:34:38 +02:00
Lennart Poettering
5b2a83733d optimize volume changing a bit by only using a single counter for the inner loops instead of two 2008-08-11 15:19:52 +02:00
Lennart Poettering
b604290803 adhere to struct gcc aliasing rules 2008-08-11 15:17:30 +02:00
Lennart Poettering
b21840407a fix bad memory access 2008-08-09 17:04:41 +02:00
Lennart Poettering
afbfd5d937 adhere to C strict aliasing rules 2008-08-09 17:03:43 +02:00
Lennart Poettering
432b4e5f7d don't use PA_GCC_UNUSED anymore 2008-08-09 16:20:29 +02:00
Lennart Poettering
9996213c41 free regex_t after use 2008-08-09 16:12:50 +02:00
Lennart Poettering
ee4c350de7 set errno properly in all functions from pid.c 2008-08-09 03:47:18 +02:00
Lennart Poettering
d8119afeef set errno properly in all functions from core-util.c 2008-08-09 03:46:46 +02:00
Lennart Poettering
9cf1a4e5c4 add locale support to pa_parse_boolean() 2008-08-09 03:46:23 +02:00
Lennart Poettering
6df029a1b1 make sure we don't crash if pa_thread_join() is called more than once on the same pa_thread object 2008-08-08 22:31:24 +02:00
Diego 'Flameeyes' Pettenò
daf3e8b97d Create a new macro for checking compiler support for TLS.
Create a new macro that can be shared between projects to check for
__thread support by the compiler. This macro might come useful for
xine-lib too so I want to keep it separate for easier importing it
over.

Name the defined macro SUPPORT_TLS___THREAD to follow the same style
as the checks from attributes.m4.
2008-08-08 15:09:38 +02:00
Lennart Poettering
75b28e97fa remove some leftover debug string 2008-08-07 02:29:44 +02:00
Lennart Poettering
ecb2bc4f04 Modify pa_state_path() to take an additional argument for prepending the machine id to the file name. 2008-08-07 02:28:47 +02:00
Lennart Poettering
bd05b36a1e Rework state/runtime directory logic
The runtime directory is now guaranteed to be in /tmp which will hopefully
provide support for POSIX file locking and UNIX sockets.

The state directory stays in $HOME.
2008-08-07 02:25:48 +02:00
Lennart Poettering
73e2577ca6 add new function pa_machine_id() 2008-08-07 02:22:57 +02:00
Lennart Poettering
756fac8d04 add new switch --disallow-exit 2008-08-06 19:39:12 +02:00
Lennart Poettering
c4a953dc96 remove authkey-prop from tree 2008-08-06 03:05:20 +02:00
Lennart Poettering
b4e8cac066 don't include authkey-prop.h anymore 2008-08-06 03:04:53 +02:00
Lennart Poettering
9fde00e449 fix a few potential bad memory accesses 2008-08-06 03:04:22 +02:00