Lennart Poettering [Sat, 3 May 2008 01:36:42 +0000 (01:36 +0000)]
update LADSPA module for glitch-free moed
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2358
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:36:05 +0000 (01:36 +0000)]
explain why a rewind was requested
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:34:45 +0000 (01:34 +0000)]
when rewinding after the end of an underrun, make sure to rewind as much as we can, so that we deal properly with changed latencies of the sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2356
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:33:33 +0000 (01:33 +0000)]
follow _unlink() changes from sink-input
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2355
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:32:57 +0000 (01:32 +0000)]
send PA_SINK_MESSAGE_REMOVE_INPUT only when an asyncmsgq is available, reset resampler only when we really need to
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2354
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:31:39 +0000 (01:31 +0000)]
make sure to call sink->update_requested_latency() always when we change latency, same for source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2353
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 3 May 2008 01:30:40 +0000 (01:30 +0000)]
don't require a module name when resolving a dl symbol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2352
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Tanu Kaskinen [Fri, 2 May 2008 13:12:51 +0000 (13:12 +0000)]
Fix typo: "now"->"not".
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2351
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Tanu Kaskinen [Fri, 2 May 2008 13:08:15 +0000 (13:08 +0000)]
Fix setrlimit() return value comparsion.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2350
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:26:10 +0000 (01:26 +0000)]
only send PA_SINK_MESSAGE_SET_STATE if there's still an asyncmsqg around to do so
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2347
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:25:22 +0000 (01:25 +0000)]
a few modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2346
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:24:47 +0000 (01:24 +0000)]
reorderer a few things
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2345
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:24:01 +0000 (01:24 +0000)]
fix a compiler warning
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2344
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:23:32 +0000 (01:23 +0000)]
some modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2343
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:21:22 +0000 (01:21 +0000)]
add multiarch paths to default LADSPA search path
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2342
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 2 May 2008 01:20:46 +0000 (01:20 +0000)]
don't enable prebuffering if we just call is_readable()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2341
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:51:05 +0000 (19:51 +0000)]
Yes, yet another evil all-in-one commit of intervowen changes. I suck.
* Drop "state" directory, fold that into "runtime directory"
* No longer automatically rewind when a new stream connects
* Rework sound file stream, to cause a rewind on initialisation, shorten _pop() code a bit
* Fix reference counting of pa_socket_server in the protocol implementations
* Rework daemon initialization code to be compatible with non-SUID-root setups where RLIMIT_RTPRIO is non-zero
* Print warning if RT/HP is enabled in the config, but due to missing caps, rlimits, policy we cannot enable it.
* Fix potential memory leak in pa_open_config_file()
* Add pa_find_config_file() which works much like pa_open_config_file() but doesn't actually open the config file in question. Just searches for it.
* Add portable pa_is_path_absolute()
* Add pa_close_all() and use it on daemon startup to close leaking file descriptors (inspired from what I did for libdaemon)
* Add pa_unblock_sigs() and use it on daemon startup to unblock all signals (inspired from libdaemon, too)
* Add pa_reset_sigs() and use it on daemon startup to reset all signal handlers (inspired from libdaemon as well)
* Implement pa_set_env()
* Define RLIMIT_RTTIME and friends if not defined by glibc
* Add pa_strempty()
* rename state testing macros to include _IS_, to make clearer that they are no states, but testing macros
* Implement pa_source_output_set_requested_latency_within_thread() to be able to forward latency info to sources from within the IO thread
* Similar for sink inputs
* generelize since_underrun counter in sink inputs to "playing_for" and "underrun_for". Use only this for ignore potential rewind requests over underruns
* Add new native protocol message PLAYBACK_STREAM_MESSAGE_STARTED for notification about the end of an underrun
* Port native protocol to use underrun_for/playing_for which is maintained by the sink input anyway
* Pass underrun_for/playing_for in timing info to client
* Drop pa_sink_skip() since it breaks underrun detection code
* Move PID file and unix sockets to the runtime dir (i.e. ~/.pulse). This fixes a potention DoS attack from other users stealing dirs in /tmp from us so that we cannot take them anymore)
* Allow setting of more resource limits from the config file. Set RTTIME by default
* Streamline daemon startup code
* Rework algorithm to find default configuration files
* If run in system mode use "system.pa" instead of "default.pa" as default script file
* Change ladspa sink to use pa_clamp_samples() for clamping samples
* Teach module-null-sink how to deal with rewinding
* Try to support ALSA devices with no implicit channel map. Synthesize one by padding with PA_CHANNEL_POSITION_AUX channels. This is not tested since I lack hardware with these problems.
* Make use of time smoother in the client libraries.
* Add new pa_stream_is_corked() and pa_stream_set_started_callback() functions to public API
* Since our native socket moved, add some code for finding sockets created by old versions of PA. This should ease upgrades
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2329
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:26:41 +0000 (19:26 +0000)]
move unlinking code to operation_unlink()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2328
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:25:24 +0000 (19:25 +0000)]
some minor updates
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2327
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:24:09 +0000 (19:24 +0000)]
parse boolean parameters as boolean instead of int wherever applicable. add new function pa_cli_command_execute_file_stream()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2326
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:22:35 +0000 (19:22 +0000)]
install gccmacro.h properly, drop unused core-def.h file
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2325
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:17:52 +0000 (19:17 +0000)]
change pa_rtpoll_set_timer_absolute() to take a pa_usec_t instead of struct timeval
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2324
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:16:55 +0000 (19:16 +0000)]
save and restore errno in log functions
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2323
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:16:25 +0000 (19:16 +0000)]
minor reformat
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2322
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:15:49 +0000 (19:15 +0000)]
check for $PULSE_INTERNAL before enabling padsp
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2321
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:15:08 +0000 (19:15 +0000)]
don't allow overwriting of callback pointers when we're already dead
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2320
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:13:53 +0000 (19:13 +0000)]
port pa_sample_clamp() to liboil
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2319
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:09:03 +0000 (19:09 +0000)]
add new function pa_sample_clamp()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2318
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:06:15 +0000 (19:06 +0000)]
strip CRLF line breaks from read CLI commands. This should fix the cli interface for people accessing it via telnet.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2317
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 19:04:42 +0000 (19:04 +0000)]
* Increase history set to 64 to simplify reduction of indexes
* Decrease memory consumption a bit by using bitfields for some bools
* Rework reduction code
* Drop an unnessacary counter
* Before adding a new entry to the history, try to figure out if we already have an existing entry with the same x value and replace that. This fixes a division by zero
* Fix up input x for all functions, according to the time offset
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2316
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 18:59:25 +0000 (18:59 +0000)]
make check for $DISPLAY=="" more readable, pa_bool_tization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2315
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 18:57:18 +0000 (18:57 +0000)]
a bit of pa_bool_t'ization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2314
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 1 May 2008 18:56:14 +0000 (18:56 +0000)]
save errno before calling free()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2313
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 23:22:51 +0000 (23:22 +0000)]
define minimal and maximal wakeup/sleep times; check for underrun condition only once during buffer fillup
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2312
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 19:55:04 +0000 (19:55 +0000)]
fix size of requested_latency
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2311
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 19:22:56 +0000 (19:22 +0000)]
fix build for auxiliary modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2310
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:56:19 +0000 (18:56 +0000)]
add stripnul to build
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2309
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:26:48 +0000 (18:26 +0000)]
Big pile of interdependant changes:
* Fix a deadlock when an asyncq overflows and an RT thread needed to wait until space became available again while the main thread was waiting for a operation to complete and thus didn't free any new items. Now, if the asyncq overflows, queue those items temporarily, and return immediately. Then, when the queue becomes writable again, flush it.
* Modify pa_thread_mq_init() to also set up pa_rtpoll events properly for the MQ
* Some more pa_bool_t'ization
* Unify more common code between alsa-sink and alsa-source
* The upper limit for the tsched watermark is max_use minus one frame
* make module-alsa-source work
* make the alsa modules use pa_alsa_build_pollfd() now
* fix detection of dB scale for alsa-source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2308
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:19:45 +0000 (18:19 +0000)]
add new tool 'stripnul' which can be used to drop leading zeros from a file which is useful to do byte-by-byte comparison of what goes in and comes out of PA
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2307
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:17:17 +0000 (18:17 +0000)]
pa_bool_t'ization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2306
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:14:25 +0000 (18:14 +0000)]
respect the resampler's maximum block size to avoid that we get kicked out of the memory pool due to resampling. actually drop data from the delay queue after we used it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2305
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:13:11 +0000 (18:13 +0000)]
add missing header definitions for last commit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2304
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:12:46 +0000 (18:12 +0000)]
add new function pa_alsa_build_pollfd() to alsa-util to unify a bit more common code from the sink and the source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2303
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:11:57 +0000 (18:11 +0000)]
unify code that fixes up buffering metrics
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2302
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:11:14 +0000 (18:11 +0000)]
drop a misplaced newline
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2301
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Apr 2008 18:10:34 +0000 (18:10 +0000)]
do not fix automatic buffer attrs anymore, the new protocol version doesn't need this anymore and it creates more problems than it solves. Also drop the initial timing info query. Correct programs shouldn't depend on it anyway
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2300
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:50:55 +0000 (02:50 +0000)]
* don't increase tsched_watermark on underrun without limits
* fix the watermark when we change the latency
* fix latency measurement
* move rewinding code into its own function
* make use of new function pa_alsa_recover_from_poll() were applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2299
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:48:24 +0000 (02:48 +0000)]
show configure latency metrics
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2298
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:47:47 +0000 (02:47 +0000)]
some beautification updates, show msec instead of usec everywhere
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2297
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:47:05 +0000 (02:47 +0000)]
if no timer was armed, we don't need to disarm it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2296
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:46:19 +0000 (02:46 +0000)]
if no latency was configure for a sink/source, fill in the max latency automatically
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2295
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:44:25 +0000 (02:44 +0000)]
add new function pa_alsa_recover_from_poll() to merge common core from module-alsa-sink and module-alsa-source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2294
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 02:38:51 +0000 (02:38 +0000)]
implement --process-time
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2293
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 01:11:16 +0000 (01:11 +0000)]
make sure the client buffer has space for 2*minreq+tlength. Explain why
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2292
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 01:04:27 +0000 (01:04 +0000)]
- Change meaning of special values of latency request: 0 -> "minimal latency, please"; (pa_usec_t)-1 -> "don't care"
- Remove "source" word from monitor source description
- Increase default tsched watermark to 20ms again
- For the first iteration after snd_pcm_start() halve the sleep time as workaround for USB devices with quick starts
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2291
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Apr 2008 00:52:31 +0000 (00:52 +0000)]
properly initialize memblock->is_silence for imported memory blocks; make is_silence and read_only a bit field
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2290
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 23:57:44 +0000 (23:57 +0000)]
improve dB volume calculation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2289
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 23:56:55 +0000 (23:56 +0000)]
fix C++ compat
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2288
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 21:50:57 +0000 (21:50 +0000)]
initialize properties for ALSA sinks/sources more elaborately, re #277
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2287
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 21:49:05 +0000 (21:49 +0000)]
use the sink description instead of the name to choose the description for the monitor source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2286
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 20:53:46 +0000 (20:53 +0000)]
drop a redundant pa_init_proplist(), properly set MEDIA_NAME property on stream, not on context
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2285
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 20:35:44 +0000 (20:35 +0000)]
rename sink_input->rewind to process_rewind() and set_max_rewind to update_max_rewind()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2284
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 20:16:55 +0000 (20:16 +0000)]
Big pile of dependant changes:
* Change pa_memblockq to carry silence memchunk instead of memblock and adapt all users
* Add new call pa_sink_input_get_silence() to get the suitable silence block for a sink input
* Implement monitoring sources properly by adding a delay queue to even out rewinds
* Remove pa_{sink|source}_ping() becaused unnecessary these days and not used
* Fix naming of various rewind related functions. Downstream is now _request_rewind(), upstream is _process_rewind()
* Fix volume adjustments for a single stream in pa_sink_render()
* Properly handle prebuf-style buffer underruns in pa_sink_input
* Don't allow rewinding to more than the last underrun
* Rework default buffering metrics selection for native protocol
* New functions pa_memblockq_prebuf_active(), pa_memblockq_silence()
* add option "mixer_reset=" to module-alsa-sink
* Other cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2283
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:53:07 +0000 (19:53 +0000)]
maintain a global silence memblock cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2282
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:52:05 +0000 (19:52 +0000)]
fix for new location of gccmacro.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2281
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:51:08 +0000 (19:51 +0000)]
we have not periodic timers anymore
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2280
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:50:42 +0000 (19:50 +0000)]
update to recent changes of proplist api
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2279
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:49:55 +0000 (19:49 +0000)]
split user supplied data in multiple memory blocks if necessary to fit in one mempool tile. If the caller supplied a free_cb and we use shm it's better to copy the data immediately to the shm region instead of keeping it around as user memblock
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2278
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:46:43 +0000 (19:46 +0000)]
increase the default pool size to 16MB because we now need to keep a lot more memory around due to glitch-free.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2277
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:44:33 +0000 (19:44 +0000)]
add lower boundary for artifical latencies
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2276
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:43:59 +0000 (19:43 +0000)]
follow pa_pstream_use_shm->pa_pstream_enable_shm rename
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2275
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:43:20 +0000 (19:43 +0000)]
add new pa_pstream_get_shm() API, rename pa_pstream_use_shm() to pa_pstream_enable_shm(); pa_bool_t-ization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2274
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:41:53 +0000 (19:41 +0000)]
remove debug messages
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2273
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:41:26 +0000 (19:41 +0000)]
add new silence memblock caching subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2272
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:40:30 +0000 (19:40 +0000)]
add new API function pa_memchunk_memcpy()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2271
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 20 Apr 2008 19:38:33 +0000 (19:38 +0000)]
print a message on xrun
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2270
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 17 Apr 2008 16:28:23 +0000 (16:28 +0000)]
add new rtstutter tool which can be used generate artifical scheduling latencies in the OS to trigger buffer underrun events in your software. it's an awesome debug tool for glitch-free; also move test programs from automake's check_ back to noinst_ to make sure it is built everytime Lennart presses F9 in his emacs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2269
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 17 Apr 2008 16:24:26 +0000 (16:24 +0000)]
define PA_xxxSEC_PER_yyySEC for usec, too
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2268
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 14 Apr 2008 18:46:24 +0000 (18:46 +0000)]
the pointer to rewind() may actually be NULL
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2267
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 14 Apr 2008 18:45:08 +0000 (18:45 +0000)]
properly ask the sink to rewind on new sink inputs and when they disappear
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2266
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 14 Apr 2008 18:43:59 +0000 (18:43 +0000)]
make sure to clear all queued RT signals before arm a new timer
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2265
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 14 Apr 2008 18:43:11 +0000 (18:43 +0000)]
add _cb suffix to _max_rewind function like with all other functions, too
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2264
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 17:39:38 +0000 (17:39 +0000)]
add missing 'break's in switch
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2262
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 17:06:41 +0000 (17:06 +0000)]
s/pulsecore\/gccmacro.h/pulse\/gccmacro.h/
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2261
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 17:05:46 +0000 (17:05 +0000)]
register sink/source name as first step when creating a new sink/source so that we can hand the valid name string to the hook functions; se tup props for monitor sources correctly; fix implicit flag setting logic
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2260
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 17:03:18 +0000 (17:03 +0000)]
dump all info we know about sinks/sources/... in pactl
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2259
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 17:02:42 +0000 (17:02 +0000)]
properly initialize ->memblockq
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2258
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:58:07 +0000 (16:58 +0000)]
add new pa_get_state_dir() function, move pa_strnull() here
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2257
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:57:26 +0000 (16:57 +0000)]
fix help string for volume commands
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2256
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:53:29 +0000 (16:53 +0000)]
fix packet formatting for a few commands
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2255
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:52:45 +0000 (16:52 +0000)]
mark shm marker struct as packed, to guarantee identical sizes between archs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2254
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:51:21 +0000 (16:51 +0000)]
add new PA_GCC_PACKED macro
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2253
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:38:16 +0000 (16:38 +0000)]
make shm magic marker compat with multiarch systems where 64bit and 32bit processes might share SHM areas
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2252
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:37:22 +0000 (16:37 +0000)]
don't fail if a signalled writability of STDOUT is no longer true when we try it because some other thread already wrote something
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2251
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:36:38 +0000 (16:36 +0000)]
update list-xxx commands a bit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2250
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:36:13 +0000 (16:36 +0000)]
don't print 'signal' each time a rtpoll poll() call is canceled
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2249
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:35:31 +0000 (16:35 +0000)]
fix linker warning macro code, move pa_strnull() to core-util.h, move PA_LIKELY definitions here from gccmacro.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2248
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:34:11 +0000 (16:34 +0000)]
don't use fqdn if we don't have to
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2247
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:33:33 +0000 (16:33 +0000)]
redirect alsa errors to normal PA log system; export buffer settings in device props
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2246
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:32:03 +0000 (16:32 +0000)]
make use of new alsa SND_PCM_NO_AUTO_xxx flags; redirect alsa errors to normal PA log system
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2245
fefdeb5f-60dc-0310-8127-
8f9354f1896f