Lennart Poettering
ef85558abd
modules: pass properly initialized userdata pointers to various hooks
2009-06-23 04:25:45 +02:00
Lennart Poettering
fc33f7ee97
Merge most of elmarco/rtclock2
...
Merge commit 'e4d914c945 '
2009-06-22 23:09:46 +02:00
Lennart Poettering
60d36c7e74
module-stream-restore: recheck stream database on hotplug/unplug and potentially move streams
2009-06-22 22:35:55 +02:00
Lennart Poettering
c4d90ea986
restore: change 'save' flag behaviour to reflect whether an entry shall and/or is in the on-disk databases
2009-06-22 22:33:09 +02:00
Marc-André Lureau
0955e3d45b
Base mainloop on pa_rtclock_now()
...
Move the mainloop to monotonic based time events.
Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.
Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.
This patch has received several iterations, and this one as been
largely untested.
Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Lennart Poettering
4951e08031
card,stream-restore: minor cleanups
2009-06-18 00:59:33 +02:00
Lennart Poettering
d773638b20
stream-restore: e don't need to save stream data that came from the database
2009-06-18 00:56:46 +02:00
Lennart Poettering
b7e2223186
database: port restore modules to new database API
2009-05-14 01:24:26 +02:00
Lennart Poettering
fe8b10cc05
core: introduce new 'reference' volume for sinks
...
The reference volume is to be used as reference volume for stored stream
volumes. Previously if a new stream was created the relative volume was
taken relatively to the virtual device volume. Due to the flat volume
logic this could then be fed back to the virtual device volume.
Repeating the whole story over and over would result in a device volume
that would go lower, and lower and lower.
This patch introduces a 'reference' volume for each sink which stays
unmodified by stream volume changes even if flat volumes are used. It is
only modified if the sink volumes are modified directly by the user.
For further explanations see http://pulseaudio.org/wiki/InternalVolumes
2009-04-13 22:56:25 +02:00
Lennart Poettering
dfb3d2ec57
always remap relative volume properly
2009-03-20 13:51:08 +01:00
Colin Guthrie
86dee05aec
Use LGPL 2.1 on all files previously using LGPL 2
2009-03-03 20:23:02 +00:00
Marc-André Lureau
0684b236f0
stream-resotre: don't leak a name
2009-02-19 04:57:51 +01:00
Lennart Poettering
44bca66c59
make PA_GCC_PACKED and PA_GCC_MALLOC actually work
2009-02-13 18:02:47 +01:00
Lennart Poettering
12c29e1832
store the identification key in the module-stream-restore.id property
2009-02-04 22:26:08 +01:00
Lennart Poettering
d802a76963
remove soft volume from pa_sink_input_new_info since it should be handled internally and automatically by the sink input
2009-02-04 18:34:08 +01:00
Lennart Poettering
786398dc63
fix a validity check
2009-02-04 18:32:15 +01:00
Lennart Poettering
1db64781bf
version all entries in the database
2009-02-04 18:31:24 +01:00
Lennart Poettering
63157a6662
add missing usage strings
2009-01-28 00:19:47 +01:00
Lennart Poettering
0f664b7365
instead of making the volume relative our own, let' pa_sink_input_new() do it for us
2009-01-27 23:55:41 +01:00
Lennart Poettering
d1b754d998
only store volume/device information that has been flagged for saving, and store both relative and absolute volumes
2009-01-27 23:40:03 +01:00
Lennart Poettering
64b0543588
when changing volume, store whether it is worth remembering or no
2009-01-27 23:40:03 +01:00
Lennart Poettering
d5f46e824e
move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources
2009-01-27 04:39:07 +01:00
Lennart Poettering
c512ebf4ab
minor cleanups
2009-01-21 02:47:49 +01:00
Lennart Poettering
29c7a28817
kill autoload stuff as planned
2009-01-15 20:07:13 +01:00
Lennart Poettering
3f20a152be
Pass GDBM_NOLOCK to gdbm
...
gdbm still uses BSD lockf for locking which is incompatible with NFS.
Since we don't need the locking here since the db files in question
should never be accessed by more than one process since they are
per-home-dir and per-machine we can disable locking without any ill
results.
This should fix rhbz #471279 .
2008-12-17 20:22:42 +01:00
Lennart Poettering
c7ed771a98
fix arguments to format string
2008-10-21 18:28:19 +02:00
Lennart Poettering
9f4033d1c4
if a stream comes with now sensible properties attached, use common
...
fallback db entry.
2008-10-08 00:08:51 +02:00
Lennart Poettering
25b200c087
fix minor typo
2008-09-09 00:06:12 +03:00
Lennart Poettering
54da71ef5d
reduce needlessly large gdbm cache a bit
2008-08-29 01:48:31 +02:00
Lennart Poettering
b7026bf248
add a few more gcc warning flags and fix quite a few problems found by doing so
2008-08-19 22:39:54 +02:00
Lennart Poettering
b8ba2de7dd
restore volume/device for streams only when it wasn't set before
2008-08-18 17:49:47 +02:00
Lennart Poettering
f84536bc0a
apply newly configured rules properly
2008-08-15 14:38:18 +02:00
Lennart Poettering
63402b392b
apply volumes properly more than once in a row
2008-08-15 14:37:54 +02:00
Lennart Poettering
512c24c65a
apply the correct rules to sink inputs
2008-08-15 14:37:26 +02:00
Lennart Poettering
f68a6e5cab
don't restore devices for direct-on-input streams
2008-08-15 14:36:24 +02:00
Lennart Poettering
72f520f93c
make gcc shut up
2008-08-09 17:04:27 +02:00
Lennart Poettering
ecb2bc4f04
Modify pa_state_path() to take an additional argument for prepending the machine id to the file name.
2008-08-07 02:28:47 +02:00
Lennart Poettering
ca127532fc
add a function to dump the stream database for debugging purposes
2008-08-05 19:03:11 +02:00
Lennart Poettering
88c3db6636
add protocol extension to module-stream-restore
2008-08-04 19:01:13 +02:00
Lennart Poettering
6cc3a615fa
store channel map in database and remap volumes if necessary
2008-08-04 19:00:43 +02:00
Lennart Poettering
ad76ca0a35
add new module module-stream-restore
2008-08-03 23:23:13 +02:00