Commit graph

304 commits

Author SHA1 Message Date
Sjoerd Simons
98fbd24d62 fix iteration over random devices
Actually iterate over the various random devices. Fixes a infinite loop on
startup when /dev/urandom isn't readable. Patch by Matt Kraai on Debian bug
491270, closes #333

Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-08-03 16:46:21 +02:00
Lennart Poettering
065e7644ac make all protocol objects global singletons 2008-08-03 16:44:38 +02:00
Lennart Poettering
aaaafb059c use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() to make things more robust 2008-08-03 16:43:51 +02:00
Lennart Poettering
1ae1dfcc10 simplify a bit 2008-08-03 16:42:41 +02:00
Lennart Poettering
0a2fced2ee add new api function pa_cli_get_module() 2008-08-03 16:42:16 +02:00
Lennart Poettering
5042284d45 introduce pa_cli_eof_cb_t 2008-08-03 16:41:52 +02:00
Lennart Poettering
084f4292f6 rename pa_hook_free() to pa_hook_done() since the hook struct is allocated on the stack not via malloc 2008-08-03 16:31:49 +02:00
Lennart Poettering
34c435480f use @ as seperator between shared name variable and instance 2008-08-03 16:31:31 +02:00
Lennart Poettering
06712c2a86 add new auth cookie singleton 2008-08-03 16:29:23 +02:00
Lennart Poettering
d36c5c97e5 rename props.[ch] to shared.[ch] 2008-08-01 02:13:41 +03:00
Lennart Poettering
edc56a7f7a rename pa_property_xxx to pa_shared_xxx to avoid confusion with property lists 2008-08-01 01:56:09 +03:00
Lennart Poettering
3c6da6e741 don't pass rediculously high values to umask() 2008-07-30 14:21:11 +02:00
Lennart Poettering
68ae1d4d00 fix two thinkos in signal reset/close_all code 2008-07-29 15:36:00 +02:00
Lennart Poettering
1f10ca4e4b don't break if we fail to resume access to an audio device 2008-07-23 16:50:16 +02:00
Lennart Poettering
1568fcc979 get rid of our internal copy of the speex resampler. Instead, link against a system-installes libspeexdsp 2008-06-28 02:20:14 +02:00
Lennart Poettering
98c26b179d add proper update_max_request handler to native protocol streams 2008-06-28 01:09:07 +02:00
Lennart Poettering
32fce4debb update speex resampler 2008-06-27 22:26:00 +02:00
Lennart Poettering
2490f698c0 update ffmpeg resampler from upstream SVN 2008-06-27 22:03:44 +02:00
Lennart Poettering
913bbd4489 save a bit of memory 2008-06-27 21:37:33 +02:00
Lennart Poettering
36021b117b modernize idxset a bit, reduce memory consumption, get rid of pa_idxset_foreach() 2008-06-27 20:34:14 +02:00
Lennart Poettering
113c62bf5d halve memory consumption of mempool flist, since we know we cannot have more than n_blocks entries in it 2008-06-27 20:13:26 +02:00
Lennart Poettering
c26be0d762 modernize hashmap implementation a bit, reduce memory consumption a bit 2008-06-27 20:12:24 +02:00
Lennart Poettering
6dca92be96 rework the flist implementation to halve memory consumption by merging the state field and the pointer in the flist cells 2008-06-27 19:18:19 +02:00
Lennart Poettering
a087014969 some modernizations 2008-06-27 19:15:32 +02:00
Lennart Poettering
232c9558ff rename pa_queu_is_empty() to pa_queue_isempty() to follow idxset/hashmap nomenclatura 2008-06-27 19:14:59 +02:00
Lennart Poettering
3db7dcb962 save some memory by increasing the dynamic array at a slower rate 2008-06-27 19:12:03 +02:00
Lennart Poettering
c0f97aa580 some modernizations 2008-06-27 19:11:28 +02:00
Lennart Poettering
05400321c0 fix underrun detection for prebuf=0 streams 2008-06-27 00:35:40 +02:00
Lennart Poettering
7755f759aa use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0 2008-06-27 00:34:17 +02:00
Lennart Poettering
2b764d4294 fix crash when using sync'ed streams 2008-06-27 00:28:42 +02:00
Lennart Poettering
06ab488f73 cork/uncork before we ask for the rewrite, to make sure the rewrite actually gets trhough 2008-06-27 00:28:17 +02:00
Lennart Poettering
dcbb7f2680 convert to double only once, and make sure we can deal with negative results of -y 2008-06-26 18:49:02 +02:00
Lennart Poettering
eab1cb8df9 make sure to call process_rewind() under all circumstances before we do the next loop iteration 2008-06-26 02:56:00 +02:00
Lennart Poettering
1514d13835 split pa_memblockq_flush() into two flush commands, one which fixes up the read ptr, and one which fixes up the write ptr 2008-06-26 00:39:31 +02:00
Lennart Poettering
5fccac94e7 comment two functions in memblockq.c 2008-06-26 00:36:05 +02:00
Lennart Poettering
ec10f5fdd3 use the bight lighter _silence() instead of _flush() when destructing our little q 2008-06-26 00:33:07 +02:00
Lennart Poettering
dd8b909532 fix up if the smoother shall be resumed 'before' it was actually paused 2008-06-26 00:31:39 +02:00
Lennart Poettering
b4302cacf9 fix up monotonicity of input to _get() instead of hitting an assert 2008-06-26 00:29:59 +02:00
Lennart Poettering
df2650e7a5 fix return value of pa_namereg_make_valid_name() 2008-06-26 00:27:02 +02:00
Colin Guthrie
5099ab7b8b Export the cleanup_name() function and rename it to pa_namereg_make_valid_name().
This will allow it to be used by modules to create valid sink names.
2008-06-25 00:00:46 +01:00
Lennart Poettering
398514f577 call update_source_requested_latency callback for source outputs only when it is set to non-NULL 2008-06-24 00:06:25 +02:00
Lennart Poettering
2199b8e1ad Properly check for home directory 2008-06-21 13:55:52 +02:00
Lennart Poettering
947d8b4c09 execute detach callback before we change the state to UNLINKED 2008-06-21 02:24:59 +02:00
Lennart Poettering
37bc240ee9 allow sinks to be created with max_request initialized to 0, so that the data can be filled in later when attaching to some piggybacked sink 2008-06-21 02:24:23 +02:00
Lennart Poettering
add6c0361a Rework module-combine to work with glitch-free core; add new max_request field to pa_sink 2008-06-20 22:32:41 +02:00
Lennart Poettering
2b112fe9db add new function pa_smoother_reset() 2008-06-20 22:17:40 +02:00
Lennart Poettering
c2fa11e179 make user of pa_channel_map_init_extend() wherever it makes sense 2008-06-18 23:44:26 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
ba64de8f3c reset prebuf if it is too large
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2548 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 20:08:08 +00:00
Lennart Poettering
038a033c78 limit the prebuf value by tlength
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2547 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 20:07:51 +00:00