From 4db149f6e7c0f453e9c56057c0f55fc6e678207a Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Sat, 4 Aug 2018 16:23:08 +0200 Subject: [PATCH] mixer: set/get_trim needs to return the amount of channels consumed by the mixer even if the mixer doesn't support trims (or is empty) --- src/lib/mixer/mixer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/mixer/mixer.h b/src/lib/mixer/mixer.h index 04f7a29ec1..7295a95d76 100644 --- a/src/lib/mixer/mixer.h +++ b/src/lib/mixer/mixer.h @@ -461,12 +461,12 @@ public: virtual void set_offset(float trim) {} unsigned set_trim(float trim) { - return 0; + return 1; } unsigned get_trim(float *trim) { - return 0; + return 1; } }; @@ -783,7 +783,7 @@ public: unsigned get_trim(float *trim) { - return 0; + return 4; } private: