sink-input, source-output: Assign to reference_ratio from a single place

System Internals / PulseAudio - Tanu Kaskinen [linux.intel.com] - 17 August 2014 00:17 UTC

This makes it easy to log a message every time the reference ratio changes. I also need to add a hook for reference ratio changes, but that need will go away if the stream relative volume controls will be created by the core in the future.

f480fb3 sink-input, source-output: Assign to reference_ratio from a single place
src/pulsecore/sink-input.c | 28 ++++++++++++++++++++++++++--
src/pulsecore/sink-input.h | 6 ++++++
src/pulsecore/sink.c | 11 +++++++----
src/pulsecore/source-output.c | 26 +++++++++++++++++++++++++-
src/pulsecore/source-output.h | 6 ++++++
src/pulsecore/source.c | 11 +++++++----
6 files changed, 77 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share