Browse Source

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)

sbg
Andreas Antener 7 years ago committed by Lorenz Meier
parent
commit
4db149f6e7
  1. 6
      src/lib/mixer/mixer.h

6
src/lib/mixer/mixer.h

@ -461,12 +461,12 @@ public:
virtual void set_offset(float trim) {} virtual void set_offset(float trim) {}
unsigned set_trim(float trim) unsigned set_trim(float trim)
{ {
return 0; return 1;
} }
unsigned get_trim(float *trim) unsigned get_trim(float *trim)
{ {
return 0; return 1;
} }
}; };
@ -783,7 +783,7 @@ public:
unsigned get_trim(float *trim) unsigned get_trim(float *trim)
{ {
return 0; return 4;
} }
private: private:

Loading…
Cancel
Save