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
Lennart Poettering [Fri, 11 Apr 2008 16:31:01 +0000 (16:31 +0000)]
mark autoload functions as deprecated
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2244
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:30:34 +0000 (16:30 +0000)]
remove misplaced PA_GCC_PURE
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2243
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:30:14 +0000 (16:30 +0000)]
add C++ safety to header file
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2242
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:29:22 +0000 (16:29 +0000)]
fix bit depth guarantee for pa_usec_t
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2241
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:28:49 +0000 (16:28 +0000)]
add new API function pa_timeval_add()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2240
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:28:17 +0000 (16:28 +0000)]
remove gcc macros from cdecl.h because we have them in gccmacro.h now
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2239
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:27:31 +0000 (16:27 +0000)]
fix bad memory access when initializing client proplist
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2238
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:23:06 +0000 (16:23 +0000)]
add gccmacro.h to doxygen docs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2237
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:22:37 +0000 (16:22 +0000)]
add new module module-device-restore
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2236
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:22:02 +0000 (16:22 +0000)]
increase version of required ALSA to 1.0.16. check for gdbm
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2235
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:21:13 +0000 (16:21 +0000)]
add new API pa_rtclock_from_wallclock()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2234
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:20:33 +0000 (16:20 +0000)]
fix proplist serialization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2233
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Apr 2008 16:19:35 +0000 (16:19 +0000)]
move gccmacro from pulsecore/ to pulse/
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2232
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 13:49:37 +0000 (13:49 +0000)]
add new describe-module CLI command
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2231
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 13:49:04 +0000 (13:49 +0000)]
add new pa_proplist_setf() API function
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2230
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:19:43 +0000 (01:19 +0000)]
implement server side of new sink/source reconfiguration commands
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2229
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:19:01 +0000 (01:19 +0000)]
remove doxygen \since tag for API changes older than 0.9; properly implement new latency query APIs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2228
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:18:05 +0000 (01:18 +0000)]
init min/max latency properly; fix avail_min updating
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2227
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:17:16 +0000 (01:17 +0000)]
show configured latency and its ranges
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2226
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:16:43 +0000 (01:16 +0000)]
export both min and max latency that is configured for a sink; add API for querying the requested latency of a sink/source from the main thread
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2225
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:15:23 +0000 (01:15 +0000)]
add new latency argument
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2224
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:14:59 +0000 (01:14 +0000)]
bump protocol version
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2223
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 9 Apr 2008 01:14:33 +0000 (01:14 +0000)]
include proplist.h in doxygen docs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2222
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 7 Apr 2008 17:19:51 +0000 (17:19 +0000)]
call snd_pcm_hwsync() expclicitly before we access any of the status fields, since this seems to be necessary. try to find the right mixer device via the card index
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2221
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 7 Apr 2008 16:47:27 +0000 (16:47 +0000)]
fix bug where we silently dropped data that didn't fit into one mempool tile
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2220
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 7 Apr 2008 16:46:13 +0000 (16:46 +0000)]
add utility functions to dump alsa PCM state
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2219
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 4 Apr 2008 16:06:47 +0000 (16:06 +0000)]
propery calculate min_avail in frames instead of bytes. don't use device_id= parameter in alsa modules if parameter wasn't specified
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2218
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 4 Apr 2008 16:05:15 +0000 (16:05 +0000)]
drop support for periodic timers, cleanup code a bit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2217
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 4 Apr 2008 16:04:29 +0000 (16:04 +0000)]
mark libpulse-browse as obsolete
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2216
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Apr 2008 13:40:55 +0000 (13:40 +0000)]
- deprecate autoload stuff
- allow setting of the requested latency of a sink input/source output before _put() is called
- allow sinks/sources to have a "minimal" latency which applies to all requested latencies by sink inputs/source outputs
- add new client library flags PA_STREAM_ADJUST_LATENCY, PA_STREAM_START_MUTED
- allow client library to fill in 0 to buffer_attr fields
- update module-alsa-source following module-alsa-sink
- other cleanups and fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2215
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Mar 2008 23:08:01 +0000 (23:08 +0000)]
catch up with trunk HEAD (i.e. 2118:2213)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2214
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:26:03 +0000 (15:26 +0000)]
remaining bits and pieces
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2126
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:24:36 +0000 (15:24 +0000)]
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2125
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:21:41 +0000 (15:21 +0000)]
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2124
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:21:26 +0000 (15:21 +0000)]
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2123
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:19:40 +0000 (15:19 +0000)]
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2122
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 15 Mar 2008 15:18:55 +0000 (15:18 +0000)]
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2121
fefdeb5f-60dc-0310-8127-
8f9354f1896f