Commit graph

2503 commits

Author SHA1 Message Date
Lennart Poettering
787b869694 initialize volume properly, set more properties, modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2420 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 02:36:38 +00:00
Lennart Poettering
2eca8c9496 don't spam us with wakeup msgs in non-tsched mode
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2419 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 02:35:50 +00:00
Lennart Poettering
9c48ed116c update pipe source for glitch-free, too
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 02:03:01 +00:00
Lennart Poettering
8baa1a46e3 fix pipe sink for glitch-free
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2417 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 01:58:24 +00:00
Lennart Poettering
dd29f67703 fix braindead mistake
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2416 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 01:00:35 +00:00
Lennart Poettering
94c269e0f4 some fixes to make the esound protocol work on glitch-free again
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2415 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 00:43:24 +00:00
Lennart Poettering
8df6529ee6 some fixes to make the simple protocol work on glitch-free again
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2414 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 00:42:46 +00:00
Lennart Poettering
c5faeb1390 store peer name in native-protocol.peer property
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2413 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 00:41:58 +00:00
Lennart Poettering
aae8beb8cc if zero is passed to pa_memblock_new() allocate largest memory block possible from mempool
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2412 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-14 00:40:36 +00:00
Lennart Poettering
f124445f89 fix module-sine for glitch-free
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2393 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-09 23:15:06 +00:00
Lennart Poettering
df92b23fa6 - Fix moving of sink inputs between sinks
- Don't write more than a single buffer size in the ALSA driver at a time, to give the clients time to fill up the memblockq again
- Add API for querying the requested latency of a sink input/source output
- Drop get_letancy() from vtable of sinks/sources


git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2392 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-09 22:48:37 +00:00
Lennart Poettering
580d56358d modify test to generate data events out-of-order
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2391 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-09 22:28:38 +00:00
Lennart Poettering
0ea0e0694e make sure the smoother code can deal with incoming data that is out-of-order; start smoothing only when we have at least a configurable number of entries in our history
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2390 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-09 22:27:44 +00:00
Lennart Poettering
e97a347325 bah, english sucks
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2389 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-09 22:11:57 +00:00
Lennart Poettering
1f196e7988 fix some comments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2388 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-08 01:08:33 +00:00
Lennart Poettering
7b5c6a34e2 fix recording
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2387 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 21:10:19 +00:00
Lennart Poettering
21fa1cf857 double default asyncq size
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2386 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 21:09:49 +00:00
Lennart Poettering
876d5b408a fix a race condition when tearing down the ladspa/remap sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2385 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 20:36:41 +00:00
Lennart Poettering
6f4d44bb50 apparently alsa expects us to free the memory for card names
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2384 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 20:35:25 +00:00
Lennart Poettering
d21f458951 fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2383 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 20:34:39 +00:00
Lennart Poettering
9354da4960 make memchunk/memblockq streams work with glitch-free
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2382 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 02:22:30 +00:00
Lennart Poettering
dafcf2053f beefup proplist handling for sound events
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2381 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 02:21:10 +00:00
Lennart Poettering
8afbdc375c update to new rewinding logic
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2380 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 01:38:16 +00:00
Lennart Poettering
9d7fde5fe3 rework the rewinding logic once again, fixing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2379 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 01:37:42 +00:00
Lennart Poettering
6c28f1d5b9 decrease verbosity a bit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2378 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 01:36:44 +00:00
Lennart Poettering
44241ac243 define callback function types; allow pa_signal_done() to be called even without prior pa_signal_init()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2377 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-07 01:34:54 +00:00
Lennart Poettering
91fbb691a2 explain why changing rlimits at this time is safe
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2372 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-06 21:12:39 +00:00
Lennart Poettering
dee3555b2a rename 'routing' to 'filter'
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2371 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-06 21:11:55 +00:00
Lennart Poettering
4fa6cb4589 add a few more asserts, don't allow pa_limit_caps() to fail
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2370 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-06 21:10:53 +00:00
Lennart Poettering
71d14d40c8 fix remapping sink for glitch-free
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2359 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 02:01:29 +00:00
Lennart Poettering
a1c10b5ecb update LADSPA module for glitch-free moed
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2358 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:36:42 +00:00
Lennart Poettering
59835d955b explain why a rewind was requested
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:36:05 +00:00
Lennart Poettering
82caf5a886 when rewinding after the end of an underrun, make sure to rewind as much as we can, so that we deal properly with changed latencies of the sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2356 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:34:45 +00:00
Lennart Poettering
3167e0f999 follow _unlink() changes from sink-input
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2355 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:33:33 +00:00
Lennart Poettering
d2da344fee send PA_SINK_MESSAGE_REMOVE_INPUT only when an asyncmsgq is available, reset resampler only when we really need to
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2354 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:32:57 +00:00
Lennart Poettering
d2be471ed2 make sure to call sink->update_requested_latency() always when we change latency, same for source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2353 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:31:39 +00:00
Lennart Poettering
59a7467a64 don't require a module name when resolving a dl symbol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2352 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-03 01:30:40 +00:00
Tanu Kaskinen
ff09fa391a Fix typo: "now"->"not".
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2351 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 13:12:51 +00:00
Tanu Kaskinen
43a30a2ff1 Fix setrlimit() return value comparsion.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2350 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 13:08:15 +00:00
Lennart Poettering
bb4f83b901 only send PA_SINK_MESSAGE_SET_STATE if there's still an asyncmsqg around to do so
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2347 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:26:10 +00:00
Lennart Poettering
bfb2691fac a few modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2346 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:25:22 +00:00
Lennart Poettering
06b9140e10 reorderer a few things
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2345 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:24:47 +00:00
Lennart Poettering
792ef5c244 fix a compiler warning
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2344 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:24:01 +00:00
Lennart Poettering
775bc6c108 some modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2343 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:23:32 +00:00
Lennart Poettering
7d6269e57a add multiarch paths to default LADSPA search path
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2342 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:21:22 +00:00
Lennart Poettering
49b1b15ef0 don't enable prebuffering if we just call is_readable()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2341 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-02 01:20:46 +00:00
Lennart Poettering
52e3628c3e Yes, yet another evil all-in-one commit of intervowen changes. I suck.
* Drop "state" directory, fold that into "runtime directory"
* No longer automatically rewind when a new stream connects
* Rework sound file stream, to cause a rewind on initialisation, shorten _pop() code a bit
* Fix reference counting of pa_socket_server in the protocol implementations
* Rework daemon initialization code to be compatible with non-SUID-root setups where RLIMIT_RTPRIO is non-zero
* Print warning if RT/HP is enabled in the config, but due to missing caps, rlimits, policy we cannot enable it.
* Fix potential memory leak in pa_open_config_file()
* Add pa_find_config_file() which works much like pa_open_config_file() but doesn't actually open the config file in question. Just searches for it.
* Add portable pa_is_path_absolute()
* Add pa_close_all() and use it on daemon startup to close leaking file descriptors (inspired from what I did for libdaemon)
* Add pa_unblock_sigs() and use it on daemon startup to unblock all signals (inspired from libdaemon, too)
* Add pa_reset_sigs() and use it on daemon startup to reset all signal handlers (inspired from libdaemon as well)
* Implement pa_set_env()
* Define RLIMIT_RTTIME and friends if not defined by glibc
* Add pa_strempty()
* rename state testing macros to include _IS_, to make clearer that they are no states, but testing macros
* Implement pa_source_output_set_requested_latency_within_thread() to be able to forward latency info to sources from within the IO thread
* Similar for sink inputs
* generelize since_underrun counter in sink inputs to "playing_for" and "underrun_for". Use only this for ignore potential rewind requests over underruns
* Add new native protocol message PLAYBACK_STREAM_MESSAGE_STARTED for notification about the end of an underrun
* Port native protocol to use underrun_for/playing_for which is maintained by the sink input anyway
* Pass underrun_for/playing_for in timing info to client
* Drop pa_sink_skip() since it breaks underrun detection code
* Move PID file and unix sockets to the runtime dir (i.e. ~/.pulse). This fixes a potention DoS attack from other users stealing dirs in /tmp from us so that we cannot take them anymore)
* Allow setting of more resource limits from the config file. Set RTTIME by default
* Streamline daemon startup code
* Rework algorithm to find default configuration files
* If run in system mode use "system.pa" instead of "default.pa" as default script file
* Change ladspa sink to use pa_clamp_samples() for clamping samples
* Teach module-null-sink how to deal with rewinding
* Try to support ALSA devices with no implicit channel map. Synthesize one by padding with PA_CHANNEL_POSITION_AUX channels. This is not tested since I lack hardware with these problems.
* Make use of time smoother in the client libraries.
* Add new pa_stream_is_corked() and pa_stream_set_started_callback() functions to public API
* Since our native socket moved, add some code for finding sockets created by old versions of PA. This should ease upgrades


git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2329 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-01 19:51:05 +00:00
Lennart Poettering
f94fae3da3 move unlinking code to operation_unlink()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2328 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-01 19:26:41 +00:00
Lennart Poettering
f3cc178b92 some minor updates
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2327 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-01 19:25:24 +00:00
Lennart Poettering
11559a6386 parse boolean parameters as boolean instead of int wherever applicable. add 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
2008-05-01 19:24:09 +00:00