Lennart Poettering
e53d2fc6b5
native: handle moving() callback with NULL destination properly
2009-08-15 00:05:17 +02:00
Lennart Poettering
0989be13f6
core: introduce pa_{sink_input|source_output}_fail_move()
2009-08-15 00:03:50 +02:00
Lennart Poettering
72d2540e8d
protocol-native: log explicitly each time a client triggers a volume change
2009-08-14 19:31:05 +02:00
Lennart Poettering
fecd0dc801
resampler: round up when estimating input/output sizes
2009-08-14 04:21:09 +02:00
Lennart Poettering
9e21182e01
thread-mq: never drop queued messages for the main loop
...
Previously we might have dropped messages from IO trheads to the main
thread. This tuend out to be problematic since this cause SHM release
messages to be lost. More visibly however this could cause playback
freezing when moving streams between sinks and removing the old sink
right away.
2009-08-14 04:18:28 +02:00
Lennart Poettering
446fb2c9fe
asyncmsgq: add pa_asyncmsgq_flush() call
2009-08-14 04:17:48 +02:00
Lennart Poettering
a42c597f0a
memblockq: add pa_memblockq_get_maxrewind() API
2009-08-14 04:16:28 +02:00
Lennart Poettering
b0cabfe16b
shm: bump shm size limit to 1GB
2009-08-14 04:14:35 +02:00
Lennart Poettering
5ee4069e9e
core: add functions to query max_rewind/max_request values from streams
2009-08-13 02:17:24 +02:00
Lennart Poettering
9a95fe49c8
core: add assert macros for verifying calling context
...
This adds pa_assert_io_context() and pa_assert_ctl_context() in addition
to a few related macros. When called they will fail when the current execution
context is not IO resp. not control context. (aka 'thread' context vs.
'main' context)
2009-08-13 02:14:19 +02:00
Lennart Poettering
17d57415f5
start-child: clean up child environment a bit better
2009-08-12 21:43:06 +02:00
Lennart Poettering
286ab2f193
memblock: rate limit 'Pool full' message
2009-08-12 21:40:38 +02:00
Lennart Poettering
ef176ecb62
core-util: move personality resetting into core-util
2009-08-12 21:36:52 +02:00
Lennart Poettering
8998cba683
conf: add pa_config_parse_not_bool() for parsing inverse boolean configuration options
2009-08-12 20:14:31 +02:00
Lennart Poettering
7d4916379b
ladspa/remap: make sure we process all requested rewinds unconditionally
...
In some situations a rewind request travelling downstream might be
optimized away on its way and an upstream rewind processing might never
come back. Hence, call _process_rewind() before each _render()just to
make sure we processed them all.
2009-08-07 23:58:45 +02:00
Lennart Poettering
51b3899348
core: save volume/mute changes coming from the hardware automatically
...
Volume changes coming from the lower layers are most likely changes
triggered by the user, so let's save them automatically.
2009-08-07 23:55:06 +02:00
Lennart Poettering
ff52588c7b
smoother: readd #ifdef protection
2009-08-05 03:52:15 +02:00
Lennart Poettering
277822053c
autospawn: if creating the lock file fails, pass error code cleanly back to main process
...
This makes sure PA clients don't hang if $HOME is for some reason
unsuitable for autospawn lockfiles.
Closes #539
2009-08-01 03:10:19 +02:00
Lennart Poettering
49fd8ee72e
core-util: replace remaining fixed size destination string functions by _malloc() versions
...
This helps portability to GNU/Hurd.
Patch originally from Samuel Thibault but modified.
Closes ticket #546
2009-08-01 02:03:22 +02:00
Lennart Poettering
c6ea9fecc9
core-util: rework pa_strlcpy() to not rely on strncpy()
...
strncpy() is very slow since it resets the entire destination buffer.
Replace usage of strncpy by memcpy().
2009-08-01 02:01:58 +02:00
Lennart Poettering
e5c2256e36
pipe: replace PIPE_BUF macro pa pa_pipe_buf call
...
This should help portability to platforms that lack PIPE_BUF. Based on a
patch from Samuel Thibault.
See ticket #546
2009-08-01 01:59:58 +02:00
Lennart Poettering
5efb07281d
alsa: throw timing data away after device resume
2009-07-24 20:13:52 +02:00
Lennart Poettering
5e24b6dff5
memblock: try to hit an assert earlier when ref counting doesn't work
2009-07-24 15:49:22 +02:00
Lennart Poettering
5a0ef5fd13
daemon: replace colons by dash in per-machine directory names for compat with weird filesystems
2009-07-23 19:12:53 +02:00
Lennart Poettering
88d5749f6a
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
...
Conflicts:
src/daemon/main.c
2009-07-23 15:18:06 +02:00
Lennart Poettering
3d6278bc31
Merge commit 'flameeyes/osx'
2009-07-23 15:13:29 +02:00
Wim Taymans
3b01d3a53f
protocol-native: use the right samplerate
...
The render_memblockq is expressed in the sample_spec of the sink, not of the
particular stream before resampling.
2009-07-23 13:57:42 +02:00
Lennart Poettering
0225ef68f2
memtrap: clarify that we are not interested in the return value of write()
2009-07-20 15:50:02 +01:00
Diego Elio 'Flameeyes' Pettenò
d18eb61bd2
Again make sure that the wait() definition is not shadowed.
...
Rename the parameter in pa_asyncmsgq_get() to wait_op.
2009-07-17 21:05:49 +02:00
Lennart Poettering
7dabe051cd
memtrap: properly lock access to memtrap changer
2009-07-01 20:22:38 +02:00
Lennart Poettering
28e4625a52
memblock: rearrange locking order
2009-07-01 20:20:55 +02:00
Lennart Poettering
a10b7cda4e
native: don't hit assert when user uploads zero-sized sample
2009-07-01 14:25:13 +02:00
Diego Elio 'Flameeyes' Pettenò
1ca7603109
Add missing headers includes for FreeBSD.
...
This removes the implicit declarations of send() and pthread_sigmask().
2009-06-29 17:42:07 +02:00
Diego Elio 'Flameeyes' Pettenò
bce211e416
Rename the flock variable to f_lock.
...
flock() is a function on FreeBSD, and the variable shadowed its definition.
2009-06-29 17:41:57 +02:00
Diego Elio 'Flameeyes' Pettenò
6f44792806
Only declare saved_errno when it's going to be used (on Linux).
2009-06-29 17:41:45 +02:00
Diego Elio 'Flameeyes' Pettenò
9a2ac32dcd
Rename the wait parameter to wait_op, to avoid shadowing wait().
2009-06-29 17:41:37 +02:00
Diego Elio 'Flameeyes' Pettenò
de40e41446
Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD.
2009-06-29 17:41:06 +02:00
Lennart Poettering
2654eb7781
sndfile: fix build on BE archs
2009-06-23 18:54:17 +02:00
Lennart Poettering
d965000982
rtclock: make use of constants when converting between nsec and usec
2009-06-23 03:55:32 +02:00
Lennart Poettering
882cdfc123
rtclock: fix type of PA_TIMEVAL_RTCLOCK
2009-06-23 00:17:26 +02:00
Lennart Poettering
fc33f7ee97
Merge most of elmarco/rtclock2
...
Merge commit 'e4d914c945 '
2009-06-22 23:09:46 +02:00
Marc-André Lureau
e4d914c945
rtclock: fix issues found by Lennart
2009-06-20 17:29:34 +03:00
Marc-André Lureau
0955e3d45b
Base mainloop on pa_rtclock_now()
...
Move the mainloop to monotonic based time events.
Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.
Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.
This patch has received several iterations, and this one as been
largely untested.
Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
125c528896
pulse: move pa_rtclock_now in pulsecommon
2009-06-20 17:29:08 +03:00
Lennart Poettering
32e2cd6d32
core: get rid of rt sig/timer handling since modern Linux' ppooll() is finally fixed for granularity
2009-06-19 21:00:06 +02:00
Marc-André Lureau
5dcdd5e358
perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]'
2009-06-19 19:04:04 +03:00
Lennart Poettering
bacc5ca6f4
core: use rtkit to acquire high-priority scheduling
2009-06-19 04:45:19 +02:00
Lennart Poettering
8474fd7c62
core: ask RealtimeKit for RT scheduling
2009-06-19 04:19:08 +02:00
Lennart Poettering
8fe50b0d7c
alsa,core: include mapping name in description strings
2009-06-18 04:38:59 +02:00
Lennart Poettering
39b37a2bac
core: be a bit more verbose when registering a sink/source fails
2009-06-18 03:40:47 +02:00