Commit graph

948 commits

Author SHA1 Message Date
Lennart Poettering
e6a666d8d5 libpulse: introduce PA_BYTES_SNPRINT_MAX and make use of it wherever applicable 2009-09-06 22:33:04 +02:00
Lennart Poettering
6f396c89ab remap: build sse code only on x86 2009-09-03 01:48:30 +02:00
Lennart Poettering
14a9771689 core: drop unnecessary variable initialization 2009-09-03 00:21:19 +02:00
Lennart Poettering
9f4f374a19 remap_sse: fix inner loop increment on SSE
In each iteration we can process 2^4 S16NE samples and 2^5 F32NE
samples, that's twice as much as in MMX, hence correct the increments.
2009-09-03 00:17:28 +02:00
Lennart Poettering
51423cae52 remap_sse: reindent macro so that diff to MMX is nicer
Completely useless, but diff -u remap_mmx.c remap_sse.c is much nicer
this way.
2009-09-03 00:16:40 +02:00
Wim Taymans
26164ff051 sconv_sse: fix leftover counter 2009-09-02 19:42:17 +02:00
Lennart Poettering
51fc1763a1 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-09-02 04:06:04 +02:00
Lennart Poettering
297afadbef core-util: don't leak memory in pa_unset_env_recorded() 2009-09-02 04:05:34 +02:00
Lennart Poettering
767c7c7cf4 core-util: call dbus_connection_set_exit_on_disconnect() on shared busses to make sure dbus_shutdown() isn't fatal 2009-09-02 04:03:18 +02:00
Lennart Poettering
1200a0b143 sink: simplify pa_sink_render_full() by replacing it by a pa_sink_render() plus a couple of pa_sink_render_full() 2009-09-02 00:54:22 +02:00
Lennart Poettering
a8c0f65fae daemon: clean up environment when forking off children 2009-09-02 00:42:54 +02:00
Lennart Poettering
5f929963d1 core-util: add api for setting env vars and record them so that we can undo them n fork 2009-09-02 00:34:27 +02:00
Lennart Poettering
45513a2077 core: fill up memblock with pa_sink_render_into_full() in pa_sink_render_full() instead of doing our own loop 2009-09-01 22:19:30 +02:00
Lennart Poettering
17f609ac83 core: handle suspended state in pa_sink_render_full() similar to the other render functions 2009-09-01 22:18:55 +02:00
Lennart Poettering
ce6dff4ee0 core: add missing sink_unref() 2009-09-01 22:18:01 +02:00
Wim Taymans
dc221f204b remap: fix counters for mmx and sse remap
Take the size of the sample into account when calculating the amount of samples
we process in parallel.
2009-08-31 21:50:56 +02:00
Lennart Poettering
e20d9068a3 cli: make sure 'dump' uses pa_cvolume_max() to deduce a single-channel volume from a multi-channel volume 2009-08-31 21:42:09 +02:00
Lennart Poettering
7c6a0ec66c cli: apply single-channel volume changes equally to all channels 2009-08-31 21:41:36 +02:00
Lennart Poettering
2970c11902 core: always allow volume setting with single-channel pa_cvolume 2009-08-31 21:40:59 +02:00
Lennart Poettering
e1ce365cd9 native: make sure clients cannot trigger an assert by sending us invalid volume info 2009-08-29 06:11:02 +02:00
Lennart Poettering
8bf2e3fe94 core: initialize sink/source priorities automatically based on their proplists 2009-08-29 04:31:33 +02:00
Lennart Poettering
18b13a89a5 namereg: select default sink by priority 2009-08-29 03:58:57 +02:00
Lennart Poettering
a7b3125206 protocol-native: replace use of pa_namereg_is_valid_name() by pa_namereg_is_valid_name_or_wildcard() where applicable to allow use of @@ wildcards 2009-08-29 03:57:53 +02:00
Lennart Poettering
85a683f392 namereg: add new pa_namereg_is_valid_name_or_wildcard() call 2009-08-29 03:56:03 +02:00
Lennart Poettering
3b54849a08 core: add priority field to pa_sink/pa_source 2009-08-28 23:31:05 +02:00
Lennart Poettering
ca2c0f22d8 sconv: quieten gcc a bit 2009-08-28 23:31:05 +02:00
Lennart Poettering
84eb6614eb core: move 'flags' field into 'pa_sink_input_new_data' structure so that hooks can access it 2009-08-28 23:24:09 +02:00
Andy Shevchenko
300384ce0a Fix checking for NULL after usage
The pa_xmalloc calls oom() in case of NULL pointer returned by malloc() on one
hand and dereferencing of pointer is happen early than actual check on other
hand. Thus, just remove useless checks.
2009-08-28 17:12:44 +02:00
Andy Shevchenko
ae383539d7 core-util: Fix logic of pa_make_path_absolute()
Make it works as described in commentary (when fn is NULL, pa_assert(fn) could
break logic).
2009-08-28 17:12:26 +02:00
Wim Taymans
beb180b7bc convert: add sse/sse2 s16 to float32ne conversions 2009-08-27 10:44:53 +02:00
Wim Taymans
27bfb7628c macro: add macro to align variables 2009-08-27 10:44:53 +02:00
Wim Taymans
59070892ed remap: cleanup assembler a little 2009-08-27 10:44:52 +02:00
Wim Taymans
9d25467964 sample-util: avoid stack overrun
The linear volume array needs enough padding when preparing the volumes for
mixing.
2009-08-27 10:44:52 +02:00
Wim Taymans
509d9f04e5 remap: add sse optimized mono to stereo 2009-08-27 10:44:52 +02:00
Wim Taymans
26bd0901ac sconv: fix indentation 2009-08-27 10:44:52 +02:00
Lennart Poettering
5df842db64 sink-input: extend comments on rewinding logic a bit 2009-08-27 01:48:35 +02:00
Lennart Poettering
c372b52a77 protocol-native: print more volume change debug messages to easy tracking down of feedback loops 2009-08-27 00:05:54 +02:00
Lennart Poettering
cab48d48d1 protocol-native: compare uint64_t variable with (uint64_t) -1 instead of (size_t) -1 for compat with 32bit archs 2009-08-27 00:04:33 +02:00
Lennart Poettering
44b798237a pdispatch: various modernizations 2009-08-26 20:07:04 +02:00
Lennart Poettering
34829eb07f pdispatch: add missing commands to command table 2009-08-26 20:06:24 +02:00
Lennart Poettering
4e1298d7c7 llist: add PA_LLIST_FOREACH_SAFE macro for iteration that allows deleting 2009-08-26 20:05:48 +02:00
Lennart Poettering
827ae07c1e macro: add PA_CLIP_SUB() for saturated subtraction 2009-08-26 01:41:34 +02:00
Lennart Poettering
57fb77134b remap: fix build for non-x86 builds 2009-08-24 17:01:44 +02:00
Lennart Poettering
050a3a99e1 alsa: automatically decrease watermark after a time of stability 2009-08-24 03:27:29 +02:00
Lennart Poettering
a0f01ddc95 port a few things over to use xmalloc and friends instead of low-level libc malloc/free directly 2009-08-23 21:49:37 +02:00
Lennart Poettering
ab5ac06ac7 Merge commit 'wtay/optimize' 2009-08-23 00:06:35 +02:00
Lennart Poettering
1a05d67f07 core: relex validity checks when destructing half-set up source outputs/sink inputs 2009-08-22 04:04:23 +02:00
Ted Percival
17dc410e88 core: Remove wrong doc on how to free returned data 2009-08-22 01:08:39 +02:00
Ted Percival
15eb03a5b3 core: Add thread-safe group info functions with dynamic buffers
Provides getgrgid, getgrnam, getpwuid & getpwnam replacements that are
thread safe (a la getgrgid_r() and friends) that internally
handle allocating big-enough buffers to avoid ERANGE errors
on large users or groups.
2009-08-22 00:53:39 +02:00
Lennart Poettering
9abc010c93 object: speed up type verification by not relying on strcmp()
Instead of using string contents for type identification use the address
of a constant string array. This should speed up type verifications a
little sind we only need to compare one machine word instead of a full
string. Also, this saves a few strings.

To make clear that types must be compared via address and not string
contents 'type_name' is now called 'type_id'.

This also simplifies the macros for declaring and defining public and
private subclasses.
2009-08-21 21:27:44 +02:00