summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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
| | * a bit of pa_bool_t'izationLennart Poettering2008-05-011-3/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2314 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * save errno before calling free()Lennart Poettering2008-05-011-0/+5
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2313 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * define minimal and maximal wakeup/sleep times; check for underrun condition ↵Lennart Poettering2008-04-232-10/+68
| | | | | | | | | | | | | | | | | | only once during buffer fillup git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2312 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix size of requested_latencyLennart Poettering2008-04-231-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2311 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix build for auxiliary modulesLennart Poettering2008-04-238-27/+19
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2310 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add stripnul to buildLennart Poettering2008-04-231-1/+7
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2309 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * Big pile of interdependant changes:Lennart Poettering2008-04-2313-300/+524
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * add new tool 'stripnul' which can be used to drop leading zeros from a file ↵Lennart Poettering2008-04-231-0/+72
| | | | | | | | | | | | | | | | | | 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
| | * pa_bool_t'izationLennart Poettering2008-04-231-2/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2306 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * respect the resampler's maximum block size to avoid that we get kicked out ↵Lennart Poettering2008-04-231-1/+8
| | | | | | | | | | | | | | | | | | 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
| | * add missing header definitions for last commitLennart Poettering2008-04-231-0/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2304 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new function pa_alsa_build_pollfd() to alsa-util to unify a bit more ↵Lennart Poettering2008-04-231-0/+24
| | | | | | | | | | | | | | | | | | 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
| | * unify code that fixes up buffering metricsLennart Poettering2008-04-231-157/+188
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2302 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * drop a misplaced newlineLennart Poettering2008-04-231-1/+0
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2301 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * do not fix automatic buffer attrs anymore, the new protocol version doesn't ↵Lennart Poettering2008-04-232-50/+4
| | | | | | | | | | | | | | | | | | 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
| | * * don't increase tsched_watermark on underrun without limits Lennart Poettering2008-04-222-167/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * show configure latency metricsLennart Poettering2008-04-221-2/+10
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2298 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * some beautification updates, show msec instead of usec everywhereLennart Poettering2008-04-221-52/+58
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2297 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * if no timer was armed, we don't need to disarm itLennart Poettering2008-04-221-7/+13
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2296 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * if no latency was configure for a sink/source, fill in the max latency ↵Lennart Poettering2008-04-222-0/+6
| | | | | | | | | | | | | | | | | | automatically git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2295 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new function pa_alsa_recover_from_poll() to merge common core from ↵Lennart Poettering2008-04-222-2/+51
| | | | | | | | | | | | | | | | | | 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
| | * implement --process-timeLennart Poettering2008-04-221-24/+35
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2293 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * make sure the client buffer has space for 2*minreq+tlength. Explain whyLennart Poettering2008-04-221-9/+24
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2292 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * - Change meaning of special values of latency request: 0 -> "minimal ↵Lennart Poettering2008-04-226-26/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * properly initialize memblock->is_silence for imported memory blocks; make ↵Lennart Poettering2008-04-221-8/+7
| | | | | | | | | | | | | | | | | | 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
| | * improve dB volume calculationLennart Poettering2008-04-202-4/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2289 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix C++ compatLennart Poettering2008-04-201-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2288 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * initialize properties for ALSA sinks/sources more elaborately, re #277Lennart Poettering2008-04-204-26/+78
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2287 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * use the sink description instead of the name to choose the description for ↵Lennart Poettering2008-04-201-4/+3
| | | | | | | | | | | | | | | | | | the monitor source git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2286 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * drop a redundant pa_init_proplist(), properly set MEDIA_NAME property on ↵Lennart Poettering2008-04-201-3/+1
| | | | | | | | | | | | | | | | | | stream, not on context git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2285 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * rename sink_input->rewind to process_rewind() and set_max_rewind to ↵Lennart Poettering2008-04-209-41/+41
| | | | | | | | | | | | | | | | | | update_max_rewind() git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2284 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * Big pile of dependant changes:Lennart Poettering2008-04-2020-517/+936
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * maintain a global silence memblock cacheLennart Poettering2008-04-202-0/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2282 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix for new location of gccmacro.hLennart Poettering2008-04-209-9/+11
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2281 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * we have not periodic timers anymoreLennart Poettering2008-04-201-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2280 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * update to recent changes of proplist apiLennart Poettering2008-04-201-6/+7
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2279 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * split user supplied data in multiple memory blocks if necessary to fit in ↵Lennart Poettering2008-04-201-13/+38
| | | | | | | | | | | | | | | | | | 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
| | * increase the default pool size to 16MB because we now need to keep a lot ↵Lennart Poettering2008-04-201-3/+3
| | | | | | | | | | | | | | | | | | 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
| | * add lower boundary for artifical latenciesLennart Poettering2008-04-201-5/+17
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2276 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * follow pa_pstream_use_shm->pa_pstream_enable_shm renameLennart Poettering2008-04-201-1/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2275 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new pa_pstream_get_shm() API, rename pa_pstream_use_shm() to ↵Lennart Poettering2008-04-202-27/+37
| | | | | | | | | | | | | | | | | | 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
| | * remove debug messagesLennart Poettering2008-04-201-6/+6
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2273 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new silence memblock caching subsystemLennart Poettering2008-04-202-45/+119
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2272 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new API function pa_memchunk_memcpy()Lennart Poettering2008-04-202-0/+23
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2271 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * print a message on xrunLennart Poettering2008-04-201-3/+17
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2270 fefdeb5f-60dc-0310-8127-8f9354f1896f