Commit graph

1085 commits

Author SHA1 Message Date
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
Lennart Poettering
8ba8265e19 server side of new shm negotiation scheme; fix a bad memory access
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2545 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 18:29:00 +00:00
Lennart Poettering
0e32db2212 move pa_init_proplist() to proplist-util.[ch]
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2541 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 18:23:09 +00:00
Lennart Poettering
fa53443354 add pa_memblockq_get_base()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2539 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 19:01:09 +00:00
Lennart Poettering
7dffccded5 add Nokia copyright
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2538 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 19:00:47 +00:00
Lennart Poettering
f2efe93ded a few modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2535 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 18:56:08 +00:00
Lennart Poettering
f4e2750977 add new function pa_iochannel_socket_is_local()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2534 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 18:55:20 +00:00
Lennart Poettering
3b691c25a1 make use of the new pa_socket_address_is_local() function
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2533 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 18:45:52 +00:00
Lennart Poettering
30a8800210 add new functions pa_socket_is_local() and pa_socket_address_is_local()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2532 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 18:45:17 +00:00
Lennart Poettering
4cf508ec39 minor modernizations, increase unload timeout to 60s
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2530 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-14 21:33:49 +00:00
Lennart Poettering
ce534976ce avoid division by zero when informing user about unloaded lazy samples in the sample cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2529 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-14 21:33:21 +00:00
Lennart Poettering
b27cc1d426 fix a bad memory access pulsecore/client.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2527 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-13 21:56:19 +00:00
Lennart Poettering
7bae1baa3e rearrange things
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2526 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-13 21:55:01 +00:00
Lennart Poettering
e9c13e25b7 consider passing the same argument twice to a module an error, also consider a variable name without following = an error
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2525 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-13 21:07:21 +00:00
Lennart Poettering
8dd59a6be9 sometimes a simple memset() is much faster
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2524 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-13 21:06:31 +00:00
Lennart Poettering
92e4fb318e merge Colin Guthrie's module-always-sink module, and add priorization to the hook subsystem while doing so.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2516 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 19:45:57 +00:00
Lennart Poettering
ac0f5275c5 add new switch --start to the PA binary which allows starting PA if it is not running yet. In contrast to normal startup an already running PA will not be considered an error. Also, take the autospawn lock so we can guarantee that after this call returns PA is ralive and running
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2513 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 17:38:50 +00:00
Lennart Poettering
c33db3ce68 don't exit when the XSM signals us a session exit. instead just unload all X11 modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2512 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 16:58:00 +00:00
Lennart Poettering
a180edd0a5 move pa_core_check_quit() a bit later
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2511 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 16:56:03 +00:00
Lennart Poettering
46d17f0a61 reformat things
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2510 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 16:55:43 +00:00