Commit graph

409 commits

Author SHA1 Message Date
Lennart Poettering
9e4599820a make sure we don't hit an assert when we issue two rewind requests in a
single iteration

Closes rhbz 472757.
2009-01-12 20:30:10 +01:00
Lennart Poettering
7272c02610 introduce new function pa_module_unload_request_by_index 2009-01-12 20:27:20 +01:00
Lennart Poettering
a66d2ed7d1 Don't mix front-center into rear channels
If there's a center channel on input that is not available on output
make sure we mix front-center only into front-left/right and rear-center
into rear-left/right.

Closes #400
2009-01-12 20:23:28 +01:00
Lennart Poettering
08ee14177d Check if environ is actually set before we use it
Some applications seem to set **environ to NULL for various reasons.
Before we iterate through it we thus need to make sure it is actually
set to make sure we don't segfault.

Closes rhbz #473080
2009-01-12 20:23:01 +01:00
Lennart Poettering
68e9a48bb9 make shm marker architecture independant, patch from michich, closes #401 2008-11-01 21:45:12 +01:00
Lennart Poettering
ac8af20d8f make sure to use 64bit rounding even on 32bit machines when converting to pa_usec_t 2008-10-24 04:40:33 +02:00
Lennart Poettering
6f4b228742 fix build 2008-10-23 23:23:39 +02:00
Lennart Poettering
8e2a48a7a2 make the debug trap macro a proper macro in macro.h 2008-10-23 23:04:35 +02:00
Lennart Poettering
b041aac9b1 include log.h near the end so that macro.h can be included in log.h and defines pa_bool_t properly 2008-10-23 23:03:22 +02:00
Lennart Poettering
ab1139ffd3 convert argument to boolean int in PA_UNLIKELY, too 2008-10-23 23:03:08 +02:00
Lennart Poettering
74898ff657 fix invalid validity check 2008-10-23 23:02:15 +02:00
Lennart Poettering
af133f504f always check for libtool prefix binary name to avoid confusion when using both installed and run-from-build-tree versions of PA in parallel 2008-10-23 23:00:49 +02:00
Colin Guthrie
c72a7db3b1 Fix a potential C++/C99 ism, add a log message on error condition
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-23 22:55:13 +02:00
Lennart Poettering
f0a2294f68 if the channel map was modified due to PA_SINK_INPUT_FIX_CHANNELS, remap the specified volume properly 2008-10-23 22:53:31 +02:00
Lennart Poettering
215f1fbffa use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel map for sink inputs/source outputs in case no map is specified 2008-10-23 22:53:12 +02:00
Lennart Poettering
fc2ba1f914 instead of resetting virtual_volume unconditionally on initialization, do so only when no volume was set before 2008-10-23 22:52:41 +02:00
Lennart Poettering
aa4373962c make sure we send a started messages when we are uncorking 2008-10-06 02:26:08 +02:00
Lennart Poettering
f728e9cce0 disable valgrind macro usage for now since valgrind generates a lot of spurious warnings as it seems 2008-10-05 22:51:25 +02:00
Lennart Poettering
82c46f2238 do not cleanup staticly allocated memory unless we are in valgrind mode 2008-10-04 00:14:02 +02:00
Lennart Poettering
8222f1200f add new API function pa_in_valgrind() to check for 2008-10-04 00:10:43 +02:00
Lennart Poettering
c0815deb4a allow - in sample names 2008-10-03 19:49:15 +02:00
Lennart Poettering
2367212ec3 make a few casts explicit to remove compiler warnings 2008-10-03 17:14:58 +02:00
Lennart Poettering
7c2cb77583 a bit of late pa_bool_t'ization 2008-10-03 17:14:35 +02:00
Lennart Poettering
33b186e74d user lrint() and friends in inner loops instead of normal C casts to speed up a few things 2008-10-03 02:34:59 +02:00
Lennart Poettering
1bb5e58fb3 use PA_FLOAT32_SWAP where useful 2008-10-03 02:33:44 +02:00
Lennart Poettering
7d442e3276 optimize mixing routines a bit by pulling the multiplication with the global volume out of the inner loop by applying it first to the per-stream volumes 2008-10-03 01:53:34 +02:00
Lennart Poettering
ea82dec294 when we mix into a 16bit accumulator make sure we clamp before we scale with a volume to avoid range faults when multiplying 2008-10-02 02:29:56 +02:00
Lennart Poettering
9f5d052d93 make simple protocol not crash when allocating a memory block 2008-10-02 00:04:02 +02:00
Lennart Poettering
ea15ca9862 PA_WARN_REFERENCE works only for ELF targets 2008-10-01 14:49:00 +02:00
Lennart Poettering
4b67ea166a remove useless log message, re #367 2008-10-01 03:44:03 +02:00
Lennart Poettering
644f39d261 a few FreeBSD fixes, from alexis
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-01 01:31:56 +02:00
Lennart Poettering
79ad4e63f6 Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available
or disabled.
2008-10-01 01:14:36 +02:00
Stelian Ionescu
564ef2b71f have make_random_dir respect $TMPDIR
with the attached patch, make_random_dir first tries to use $TMPDIR,
then $TMP finally defaulting to "/tmp"

Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-09-29 21:59:57 +02:00
Lennart Poettering
87971c8707 fix compilation errors in priority queue code 2008-09-27 16:31:56 +02:00
Lennart Poettering
3ad8c04564 add a generic priority queue implementation 2008-09-26 09:49:52 -07:00
Lennart Poettering
3e16d2f40d make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check 2008-09-26 09:35:49 -07:00
Lennart Poettering
6188737021 make sure ~/.pulse exists before we create the runtime dir link beneath it 2008-09-12 17:39:08 +03:00
Lennart Poettering
17436b21d3 make sure peaks resampler also works for very short input buffers 2008-09-09 02:18:21 +03:00
Lennart Poettering
4050447230 unbreak pa_idxset_rrobin 2008-09-09 02:14:27 +03:00
Lennart Poettering
821dc1797f move autospawn lock to pulsecore/ since we don't need it in the client anymore 2008-09-08 17:22:27 +03:00
Lennart Poettering
f2164023fd Add new option to disable remixing from/to LFE and set it to on by default 2008-09-05 16:04:42 +03:00
Lennart Poettering
33d349dcbb include build and runtime host information in debug output 2008-09-05 15:42:39 +03:00
Lennart Poettering
f52fb64313 if we are exiting due to idleness, say so 2008-09-05 03:17:48 +02:00
Marc-André Lureau
79009d2235 command_get_info() segv in some conditions
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-09-03 19:44:40 +02:00
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