summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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
| | * add new rtstutter tool which can be used generate artifical scheduling ↵Lennart Poettering2008-04-172-5/+118
| | | | | | | | | | | | | | | | | | 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
| | * define PA_xxxSEC_PER_yyySEC for usec, tooLennart Poettering2008-04-171-0/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2268 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * the pointer to rewind() may actually be NULLLennart Poettering2008-04-142-4/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2267 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * properly ask the sink to rewind on new sink inputs and when they disappearLennart Poettering2008-04-141-3/+3
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2266 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * make sure to clear all queued RT signals before arm a new timerLennart Poettering2008-04-141-2/+14
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2265 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add _cb suffix to _max_rewind function like with all other functions, tooLennart Poettering2008-04-141-2/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2264 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add missing 'break's in switchLennart Poettering2008-04-111-0/+2
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2262 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * s/pulsecore\/gccmacro.h/pulse\/gccmacro.h/Lennart Poettering2008-04-1119-15/+22
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2261 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * register sink/source name as first step when creating a new sink/source so ↵Lennart Poettering2008-04-112-40/+36
| | | | | | | | | | | | | | | | | | 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
| | * dump all info we know about sinks/sources/... in pactlLennart Poettering2008-04-111-40/+65
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2259 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * properly initialize ->memblockqLennart Poettering2008-04-111-0/+1
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2258 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new pa_get_state_dir() function, move pa_strnull() hereLennart Poettering2008-04-112-1/+36
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2257 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix help string for volume commandsLennart Poettering2008-04-111-4/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2256 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * fix packet formatting for a few commandsLennart Poettering2008-04-111-9/+10
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2255 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * mark shm marker struct as packed, to guarantee identical sizes between archsLennart Poettering2008-04-111-2/+4
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2254 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * add new PA_GCC_PACKED macroLennart Poettering2008-04-111-0/+9
| | | | | | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2253 fefdeb5f-60dc-0310-8127-8f9354f1896f
| | * make shm magic marker compat with multiarch systems where 64bit and 32bit ↵Lennart Poettering2008-04-111-4/+4
| | | | | | | | | | | | | | | | | | processes might share SHM areas git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2252 fefdeb5f-60dc-0310-8127-8f9354f1896f