Colin Guthrie
c194db71b0
tunnel: fix parsing of source info from newer servers
2009-09-20 21:36:14 +01:00
Emil Renner Berthing
592345fd36
tunnel: fix parsing of sink info from newer servers
2009-09-20 21:28:49 +01:00
Lennart Poettering
f5046759cd
llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes
2009-09-08 23:46:23 +02:00
Lennart Poettering
8c31974f56
sink: volume handling rework, new flat volume logic
...
- We now implement a logic where the sink maintains two distinct
volumes: the 'reference' volume which is shown to the users, and the
'real' volume, which is configured to the hardware. The latter is
configured to the max of all streams. Volume changes on sinks are
propagated back to the streams proportional to the reference volume
change. Volume changes on sink inputs are forwarded to the sink by
'pushing' the volume if necessary.
This renames the old 'virtual_volume' to 'real_volume'. The
'reference_volume' is now the one exposed to users.
By this logic the sink volume visible to the user, will always be the
"upper" boundary for everything that is played. Saved/restored stream
volumes are measured relative to this boundary, the factor here is
always < 1.0.
- introduce accuracy for sink volumes, similar to the accuracy we
already have for source volumes.
- other cleanups.
2009-08-19 02:55:02 +02:00
Lennart Poettering
51b3899348
core: save volume/mute changes coming from the hardware automatically
...
Volume changes coming from the lower layers are most likely changes
triggered by the user, so let's save them automatically.
2009-08-07 23:55:06 +02:00
Lennart Poettering
c14f6c179f
tunnel: don't assert on misaligned reads, closes #597 and rhbz #496310
2009-07-31 00:50:19 +02:00
Lennart Poettering
fc33f7ee97
Merge most of elmarco/rtclock2
...
Merge commit 'e4d914c945 '
2009-06-22 23:09:46 +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
Marc-André Lureau
125c528896
pulse: move pa_rtclock_now in pulsecommon
2009-06-20 17:29:08 +03:00
Lennart Poettering
32e2cd6d32
core: get rid of rt sig/timer handling since modern Linux' ppooll() is finally fixed for granularity
2009-06-19 21:00:06 +02:00
Marc-André Lureau
5dcdd5e358
perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]'
2009-06-19 19:04:04 +03:00
Lennart Poettering
31575f7766
alsa: rework mixer logic
...
Completely rework mixer logic. This now allows controlling a full set of
elements from a single sink's volume slider/mute button.
This also introduces sink and source "ports" that can be used to choose
different input or output ports with the UI. (i.e. "mic"/"line-in" or
"speaker"/"headphones".
The mixer paths and device maps are now configered in external
configuration files and can be tweaked as necessary.
2009-06-17 03:45:14 +02:00
Lennart Poettering
1c4393acf0
modules: add {sink|source|card}_properties argument to all modules
2009-05-28 02:39:22 +02:00
Lennart Poettering
d035f4a3f3
Modify smoothing code to make cubic interpolation optional and allow 'quick fixups' on resuming
...
The primary reason for this change is to allow time graphs that do not
go through the origin and hence smoothing starting from the origin is
not desired. This change will allow passing time data into the smoother
while paused and then abruptly use that data without smoothing using the
'quick fixup' flag when resuming.
Primary use case is allowing recording time graphs where the data
recorded originates from a time before the stream was created. The
resulting graft will be shifted and should not be smoothened to go
through the origin.
2009-04-05 02:26:02 +02:00
Lennart Poettering
4e8ceae064
fix buffer defaults
2009-03-31 22:16:53 +02:00
Lennart Poettering
917e8cd0f6
handle buffer_attr changed messages properly
2009-03-31 21:35:34 +02:00
Lennart Poettering
aa6803653e
rework tunneling code
2009-03-30 19:13:07 +02:00
Colin Guthrie
86dee05aec
Use LGPL 2.1 on all files previously using LGPL 2
2009-03-03 20:23:02 +00:00
Lennart Poettering
4505bc9cc6
introduce default channel map in addition to the default sample spec
2009-02-21 16:32:42 +01:00
Lennart Poettering
12db1a559d
make gcc 4.4 shut up
2009-02-12 03:19:59 +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
b2ef19acc5
include PA_SINK_INVALID_STATE in all switch/case statements to make gcc shut up
2009-01-22 00:26:34 +01:00
Colin Guthrie
d8465f2c4f
Fix two typos that broke tunnels
...
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-13 19:53:45 +02:00
Lennart Poettering
5996f59dd5
update module-tunnel for recent protocol changes
2008-10-05 23:02:25 +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
34dd4a20f2
fix shutdown when --disallow-module-loading=1 is passed
2008-08-05 23:56:25 +02:00
Lennart Poettering
065e7644ac
make all protocol objects global singletons
2008-08-03 16:44:38 +02:00
Lennart Poettering
46a35c681f
forward process_msg calls to the generic source handler, not the generic sink handler
2008-07-16 11:28:46 +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
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
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
b28c6e9890
bring module-tunnel back to life
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2546 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 18:29:15 +00:00
Lennart Poettering
045c1d602d
merge glitch-free branch back into trunk
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
79938c9f00
merge r2186 from prepare-0.9.10
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2202 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-03-31 22:06:46 +00:00
Sjoerd Simons
02f49a24f4
Implement opcodes in the tunnel modules that were added in version 12 of
...
the protocol. Based on a patch by coling. (fixes #193 )
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2096 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-01-04 14:57:31 +00:00
Lennart Poettering
e313fe1b3d
tag modules that may only be loaded once at most especially, and enforce that in the module loader
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2043 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-09 18:25:40 +00:00
Lennart Poettering
72817f9d9d
rename stream names too, when the sink name changes
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1997 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-30 02:35:00 +00:00
Lennart Poettering
201dff7b2e
ignore updates not relevant to us
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1996 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-30 02:05:53 +00:00
Lennart Poettering
1e0454eb74
rework the tunnel naming scheme, and make it follow the description changes of the underlying devices; never check for tagstruct eof, to ease later extensions
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1995 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-30 01:50:22 +00:00
Lennart Poettering
bb2e1afd51
initialize userdata struct with 0
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1994 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-30 00:49:50 +00:00
Lennart Poettering
5ef242c5b3
don't try to send pause request before our stream is properly set up
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1989 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 22:14:34 +00:00
Lennart Poettering
33c238b7ef
ignore network sinks/sources
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1988 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 21:23:08 +00:00
Lennart Poettering
0ce32bd40c
fail on name clash
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1980 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 20:01:20 +00:00
Lennart Poettering
ac83631447
bring back module-tunnel, yay!
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1979 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 16:54:16 +00:00
Lennart Poettering
a67c21f093
merge 'lennart' branch back into trunk.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28 19:13:50 +00:00
Pierre Ossman
06211b7c8f
Add copyright notices to all relevant files. (based on svn log)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13 15:35:19 +00:00
Pierre Ossman
521daf6f0a
Huge trailing whitespace cleanup. Let's keep the tree pure from here on,
...
mmmkay?
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-01-04 13:43:45 +00:00
Lennart Poettering
97202d1b2d
fix a race condition with stream connection vs. latency measuremtn (found by theBear)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1355 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-09-01 00:24:32 +00:00
Lennart Poettering
b8ea488b76
fix module-combine when used on top of a tunnel sink
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1333 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-26 19:00:22 +00:00
Lennart Poettering
93e005ad37
update module-tunnel to latest protocol
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1332 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-25 22:52:59 +00:00