summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-05 01:22:05 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-05 01:22:05 +0100
commitde86c6e3ade17c3b29fd57afb47efb3a88a423d4 (patch)
tree61b56c66f01296306bd7345fe5dccb236e407222 /src/pulsecore/sink.c
parent3fc12330627488ab7632d501e3976769275cf709 (diff)
add a 'volume factor' that is implicitly multiplied into the volume of a sink input without being visible to the outside
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r--src/pulsecore/sink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 0c297ec3..57725873 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -990,6 +990,7 @@ void pa_sink_update_flat_volume(pa_sink *s, pa_cvolume *new_volume) {
remapped_new_volume = *new_volume;
pa_cvolume_remap(&remapped_new_volume, &s->channel_map, &i->channel_map);
pa_sw_cvolume_divide(&i->soft_volume, &i->virtual_volume, &remapped_new_volume);
+ pa_sw_cvolume_multiply(&i->soft_volume, &i->soft_volume, &i->volume_factor);
/* Hooks have the ability to play games with i->soft_volume */
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_INPUT_SET_VOLUME], i);