summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * modify test to generate data events out-of-orderLennart Poettering2008-05-091-8/+8
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2391 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * make sure the smoother code can deal with incoming data that is ↵Lennart Poettering2008-05-092-59/+86
| | | | | | | | | | | | | | | | | | out-of-order; start smoothing only when we have at least a configurable number of entries in our history git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2390 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * bah, english sucksLennart Poettering2008-05-091-0/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2389 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix some commentsLennart Poettering2008-05-081-2/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2388 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix recordingLennart Poettering2008-05-071-1/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2387 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * double default asyncq sizeLennart Poettering2008-05-071-6/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2386 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix a race condition when tearing down the ladspa/remap sinkLennart Poettering2008-05-072-15/+15
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2385 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * apparently alsa expects us to free the memory for card namesLennart Poettering2008-05-071-0/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2384 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix a memory leakLennart Poettering2008-05-071-1/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2383 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * make memchunk/memblockq streams work with glitch-freeLennart Poettering2008-05-072-12/+23
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2382 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * beefup proplist handling for sound eventsLennart Poettering2008-05-071-7/+21
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2381 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * update to new rewinding logicLennart Poettering2008-05-074-17/+8
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2380 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * rework the rewinding logic once again, fixingLennart Poettering2008-05-072-72/+74
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2379 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * decrease verbosity a bitLennart Poettering2008-05-071-4/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2378 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * define callback function types; allow pa_signal_done() to be called even ↵Lennart Poettering2008-05-072-18/+21
| | | | | | | | | | | | | | | | | | without prior pa_signal_init() git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2377 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * explain why changing rlimits at this time is safeLennart Poettering2008-05-061-0/+7
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2372 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * rename 'routing' to 'filter'Lennart Poettering2008-05-061-2/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2371 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add a few more asserts, don't allow pa_limit_caps() to failLennart Poettering2008-05-062-20/+10
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2370 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix remapping sink for glitch-freeLennart Poettering2008-05-032-42/+88
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2359 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * update LADSPA module for glitch-free moedLennart Poettering2008-05-031-26/+101
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2358 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * explain why a rewind was requestedLennart Poettering2008-05-031-1/+5
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * when rewinding after the end of an underrun, make sure to rewind as much as ↵Lennart Poettering2008-05-031-13/+15
| | | | | | | | | | | | | | | | | | 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
| | * follow _unlink() changes from sink-inputLennart Poettering2008-05-031-6/+6
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2355 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * send PA_SINK_MESSAGE_REMOVE_INPUT only when an asyncmsgq is available, reset ↵Lennart Poettering2008-05-031-7/+8
| | | | | | | | | | | | | | | | | | 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
| | * make sure to call sink->update_requested_latency() always when we change ↵Lennart Poettering2008-05-032-6/+0
| | | | | | | | | | | | | | | | | | latency, same for source git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2353 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * don't require a module name when resolving a dl symbolLennart Poettering2008-05-031-3/+5
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2352 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * Fix typo: "now"->"not".Tanu Kaskinen2008-05-021-2/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2351 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * Fix setrlimit() return value comparsion.Tanu Kaskinen2008-05-021-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2350 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * only send PA_SINK_MESSAGE_SET_STATE if there's still an asyncmsqg around to ↵Lennart Poettering2008-05-022-4/+6
| | | | | | | | | | | | | | | | | | do so git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2347 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * a few modernizationsLennart Poettering2008-05-022-28/+30
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2346 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * reorderer a few thingsLennart Poettering2008-05-021-9/+9
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2345 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix a compiler warningLennart Poettering2008-05-021-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2344 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * some modernizationsLennart Poettering2008-05-022-16/+23
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2343 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add multiarch paths to default LADSPA search pathLennart Poettering2008-05-021-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2342 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * don't enable prebuffering if we just call is_readable()Lennart Poettering2008-05-021-2/+11
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2341 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * Yes, yet another evil all-in-one commit of intervowen changes. I suck.Lennart Poettering2008-05-0148-1197/+2373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * move unlinking code to operation_unlink()Lennart Poettering2008-05-011-14/+19
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2328 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * some minor updatesLennart Poettering2008-05-011-12/+16
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2327 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * parse boolean parameters as boolean instead of int wherever applicable. add ↵Lennart Poettering2008-05-012-18/+50
| | | | | | | | | | | | | | | | | | 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
| | * install gccmacro.h properly, drop unused core-def.h fileLennart Poettering2008-05-012-34/+5
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2325 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * change pa_rtpoll_set_timer_absolute() to take a pa_usec_t instead of struct ↵Lennart Poettering2008-05-012-4/+3
| | | | | | | | | | | | | | | | | | timeval git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2324 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * save and restore errno in log functionsLennart Poettering2008-05-011-1/+7
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2323 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * minor reformatLennart Poettering2008-05-011-1/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2322 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * check for $PULSE_INTERNAL before enabling padspLennart Poettering2008-05-011-4/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2321 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * don't allow overwriting of callback pointers when we're already deadLennart Poettering2008-05-011-0/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2320 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * port pa_sample_clamp() to liboilLennart Poettering2008-05-011-6/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2319 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new function pa_sample_clamp()Lennart Poettering2008-05-012-0/+33
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2318 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * strip CRLF line breaks from read CLI commands. This should fix the cli ↵Lennart Poettering2008-05-011-1/+1
| | | | | | | | | | | | | | | | | | 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
| | * * Increase history set to 64 to simplify reduction of indexesLennart Poettering2008-05-011-32/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * make check for $DISPLAY=="" more readable, pa_bool_tizationLennart Poettering2008-05-011-2/+5
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2315 fefdeb5f-60dc-0310-8127-8f9354f1896f