From b6ccea3064fd1081ec4d0f8103a4b37de2605485 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 8 Oct 2008 00:10:01 +0200 Subject: add a comment that pa_sink_input_set_volume and module-flat-volume.c are related --- src/pulsecore/sink-input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pulsecore/sink-input.c') diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index c65f18a5..8505c63f 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -805,6 +805,10 @@ void pa_sink_input_set_volume(pa_sink_input *i, const pa_cvolume *volume) { data.virtual_volume = *volume; data.volume = *volume; + /* If you change something here, consider looking into + * module-flat-volume.c as well since it uses very similar + * code. */ + if (pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_SET_VOLUME], &data) < 0) return; -- cgit