Commit graph

1085 commits

Author SHA1 Message Date
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
Lennart Poettering
34dd4a20f2 fix shutdown when --disallow-module-loading=1 is passed 2008-08-05 23:56:25 +02:00
Lennart Poettering
f57b9153a8 fix a few more copy/paste errors 2008-08-05 14:26:43 +02:00
Lennart Poettering
78236af734 fix copy/paste error 2008-08-04 23:33:29 +02:00
Lennart Poettering
64a23677d3 inherit proplist on sample playback from client 2008-08-04 23:32:52 +02:00
Lennart Poettering
eec623a23b add hooks for connection creation/deletion, for that export pa_native_connection 2008-08-04 18:58:29 +02:00
Lennart Poettering
cd5afb80f7 don't hit an assert if when process_rewind() is called with nbytes=0 2008-08-04 15:33:41 +02:00
Lennart Poettering
d7b138daa2 fix uninitialized memory access 2008-08-03 23:21:51 +02:00
Lennart Poettering
04ffac57a6 add extension system for native protocol 2008-08-03 18:56:10 +02:00
Lennart Poettering
9bfd67f70f store load_once flag for module 2008-08-03 18:55:42 +02:00
Lennart Poettering
23bde22b10 start idle timer even when no module is ever loaded 2008-08-03 18:53:43 +02:00
Lennart Poettering
f417bb42cf some pa_bool_t'ization 2008-08-03 17:00:52 +02:00
Sjoerd Simons
98fbd24d62 fix iteration over random devices
Actually iterate over the various random devices. Fixes a infinite loop on
startup when /dev/urandom isn't readable. Patch by Matt Kraai on Debian bug
491270, closes #333

Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-08-03 16:46:21 +02:00
Lennart Poettering
065e7644ac make all protocol objects global singletons 2008-08-03 16:44:38 +02:00
Lennart Poettering
aaaafb059c use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() to make things more robust 2008-08-03 16:43:51 +02:00
Lennart Poettering
1ae1dfcc10 simplify a bit 2008-08-03 16:42:41 +02:00
Lennart Poettering
0a2fced2ee add new api function pa_cli_get_module() 2008-08-03 16:42:16 +02:00
Lennart Poettering
5042284d45 introduce pa_cli_eof_cb_t 2008-08-03 16:41:52 +02:00
Lennart Poettering
084f4292f6 rename pa_hook_free() to pa_hook_done() since the hook struct is allocated on the stack not via malloc 2008-08-03 16:31:49 +02:00
Lennart Poettering
34c435480f use @ as seperator between shared name variable and instance 2008-08-03 16:31:31 +02:00
Lennart Poettering
06712c2a86 add new auth cookie singleton 2008-08-03 16:29:23 +02:00
Lennart Poettering
d36c5c97e5 rename props.[ch] to shared.[ch] 2008-08-01 02:13:41 +03:00
Lennart Poettering
edc56a7f7a rename pa_property_xxx to pa_shared_xxx to avoid confusion with property lists 2008-08-01 01:56:09 +03:00
Lennart Poettering
3c6da6e741 don't pass rediculously high values to umask() 2008-07-30 14:21:11 +02:00
Lennart Poettering
68ae1d4d00 fix two thinkos in signal reset/close_all code 2008-07-29 15:36:00 +02:00
Lennart Poettering
1f10ca4e4b don't break if we fail to resume access to an audio device 2008-07-23 16:50:16 +02:00
Lennart Poettering
1568fcc979 get rid of our internal copy of the speex resampler. Instead, link against a system-installes libspeexdsp 2008-06-28 02:20:14 +02:00
Lennart Poettering
98c26b179d add proper update_max_request handler to native protocol streams 2008-06-28 01:09:07 +02:00
Lennart Poettering
32fce4debb update speex resampler 2008-06-27 22:26:00 +02:00
Lennart Poettering
2490f698c0 update ffmpeg resampler from upstream SVN 2008-06-27 22:03:44 +02:00
Lennart Poettering
913bbd4489 save a bit of memory 2008-06-27 21:37:33 +02:00