commit be0b43922bdf0311dc8463de57f02e9467892bdd
parent 84bcb5c035434013ba4129e4cc9f171dc2ac2325
Author: Matt Demanett <matt@demanett.net>
Date: Fri, 15 Nov 2019 17:49:04 -0500
PRESSOR, NSGT, LMTR: fix poly channels calculation. #78
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Lmtr.cpp b/src/Lmtr.cpp
@@ -19,7 +19,7 @@ bool Lmtr::active() {
}
int Lmtr::channels() {
- return inputs[LEFT_INPUT].getChannels() + inputs[RIGHT_INPUT].getChannels();
+ return std::max(inputs[LEFT_INPUT].getChannels(), inputs[RIGHT_INPUT].getChannels());
}
void Lmtr::addEngine(int c) {
diff --git a/src/Nsgt.cpp b/src/Nsgt.cpp
@@ -20,7 +20,7 @@ bool Nsgt::active() {
}
int Nsgt::channels() {
- return inputs[LEFT_INPUT].getChannels() + inputs[RIGHT_INPUT].getChannels();
+ return std::max(inputs[LEFT_INPUT].getChannels(), inputs[RIGHT_INPUT].getChannels());
}
void Nsgt::addEngine(int c) {
diff --git a/src/Pressor.cpp b/src/Pressor.cpp
@@ -23,7 +23,7 @@ bool Pressor::active() {
}
int Pressor::channels() {
- return inputs[LEFT_INPUT].getChannels() + inputs[RIGHT_INPUT].getChannels();
+ return std::max(inputs[LEFT_INPUT].getChannels(), inputs[RIGHT_INPUT].getChannels());
}
void Pressor::addEngine(int c) {