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
Tanu Kaskinen
7bc8a793b8
Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
...
Conflicts:
src/Makefile.am
2009-08-26 14:29:55 +03: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
Tanu Kaskinen
2f3fc2f1d6
Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
...
Conflicts:
src/Makefile.am
2009-08-24 14:43:11 +03:00
Tanu Kaskinen
57886ff34a
dbus-protocol: Print a debug line whenever interfaces are unregistered.
2009-08-24 14:26:13 +03:00
Tanu Kaskinen
7049b3c5bc
modargs: New function: pa_modargs_iterate().
2009-08-24 14:24:59 +03: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
Lennart Poettering
8a2a6b2004
adjust various data/library paths automatically if we are run from a build tree
2009-08-21 03:43:53 +02:00
Lennart Poettering
9f97b7cbe1
sink-input: add callbacks that are called whenever the mute/volume changes
2009-08-21 02:56:17 +02:00
Wim Taymans
6076cef209
remap: make the MMX code pretier
2009-08-20 20:00:50 +02:00
Wim Taymans
6e5dbed51e
remap: add MMX mono to stereo
2009-08-20 19:46:06 +02:00
Wim Taymans
e961efc130
remap: init the do_remap function to NULL
2009-08-20 18:32:51 +02:00
Wim Taymans
28baa53d55
remap: allow specialisations to install NULL
...
Fallback to the default C implementation when the remap init function did not
set a function.
2009-08-20 18:29:02 +02:00
Wim Taymans
ac1f2e0a2e
remap: move remapping code in separate file
...
Move the remapping code into a separate file. Have functions to install custom
init functions that can install optimized versions, when they want.
2009-08-20 18:23:42 +02:00
Wim Taymans
a3f4a4f6ba
resamples; refactor the channel remapping bits
...
Move the channel remapping bits into a separate structure. We'll make this
structure global so that optimized versions can use it to perform the channel
remapping.
2009-08-20 17:54:45 +02:00
Wim Taymans
05fef5f551
sconv: allow for setting custom functions
...
Add methods to override the default conversion functions.
2009-08-20 15:50:02 +02:00
Wim Taymans
f8ffe0dabc
svolume: cleanups
...
Use PA_MAX
Use pa_rtclock_now() for benchmarks
2009-08-20 12:30:48 +02:00
Wim Taymans
f09b51198f
whitespace fixes
2009-08-20 11:31:04 +02:00
Wim Taymans
3cc1278dcf
resampler: avoid some multiplies when we can
2009-08-20 11:31:04 +02:00
Wim Taymans
aeae567f88
svolume: add comment
2009-08-20 11:31:04 +02:00
Wim Taymans
8aa86f5247
arm: implement ARM cpu detection
2009-08-20 11:31:04 +02:00
Wim Taymans
078bde1b49
x86: keep the cpu flags local
2009-08-20 11:31:04 +02:00
Wim Taymans
370016c0e7
svolume: fix compilation in 32bits
2009-08-20 11:31:04 +02:00