Commit graph

675 commits

Author SHA1 Message Date
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
Lennart Poettering
f7ff9e2dd2 install auto unload time event only when we have at least one auto unload module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2509 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 16:55:26 +00:00
Lennart Poettering
67fde59fed replace pa_atof() by pa_atod() because floats are lame
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2506 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 00:37:41 +00:00
Lennart Poettering
9a501ef28e fix a compiler warning on ARM due to missing cast, patch from Jyri Sarha
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2493 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-03 08:40:30 +00:00
Lennart Poettering
8431fb17c2 allow on-the-fly deleting of hashmap entries wile we iterate through them
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2491 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-29 15:16:58 +00:00
Lennart Poettering
c4f60d5960 never hand out more data from a sink input than requested. Otherwise the resampler might run for too long and we get a heavy delay/underrun
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2490 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-27 22:08:42 +00:00
Lennart Poettering
7297bd91e7 always expect name field in upload datagram
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2489 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-27 22:07:27 +00:00
Lennart Poettering
307645e621 fix esound proto to not crash
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2488 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-27 22:05:31 +00:00
Lennart Poettering
28405e3dcf big mumbo jumo of interleaved patches.
* Use seperate "state" and "config" paths
* Pass the fact that we are in system mode via an env var $PULSE_SYSTEM instead of as var in pa_core
* Properly check proc name when checking PID files. Don't check exename, because we cannot read that for other uids


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2480 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-21 22:50:58 +00:00
Lennart Poettering
9303cdd732 add O_NOCTTY
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2471 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-21 22:42:01 +00:00
Lennart Poettering
a9c80b4383 add new functions pa_state_path()/pa_get_state_dir(), change return value of pa_startswith()/pa_endswith() pa_bool, add pa_in_system_mode() and pa_streq(); alow pa_unlock_lockfile() without file name spec
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2470 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-21 22:39:40 +00:00