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)

This commit is contained in:
Andreas Antener
2018-08-04 16:23:08 +02:00
committed by Lorenz Meier
parent f298d4bb4f
commit 4db149f6e7
+3 -3
View File
@@ -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: