summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
Commit message (Collapse)AuthorAgeFilesLines
* 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-011-29/+0
| | | | 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
* 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
* 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
* Big pile of interdependant changes:Lennart Poettering2008-04-238-46/+248
| | | | | | | | | | | | | | * 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
* 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
* 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
* 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
* 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-224-17/+15
| | | | | | | | | | | 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
* 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
* 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-2013-388/+746
| | | | | | | | | | | | | | | | | | * 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
* 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 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
* 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-1110-8/+12
| | | | 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
* 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
* 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
* don't fail if a signalled writability of STDOUT is no longer true when we ↵Lennart Poettering2008-04-111-0/+7
| | | | | | 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
* update list-xxx commands a bitLennart Poettering2008-04-111-10/+10
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2250 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't print 'signal' each time a rtpoll poll() call is canceledLennart Poettering2008-04-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2249 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix linker warning macro code, move pa_strnull() to core-util.h, move ↵Lennart Poettering2008-04-111-9/+15
| | | | | | 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
* don't use fqdn if we don't have toLennart Poettering2008-04-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2247 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new API pa_rtclock_from_wallclock()Lennart Poettering2008-04-112-0/+23
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2234 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix proplist serializationLennart Poettering2008-04-112-9/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2233 fefdeb5f-60dc-0310-8127-8f9354f1896f