Browse Source

Fix AudioWidget channel number.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
bb3c32820b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/AudioWidget.cpp

+ 2
- 2
src/app/AudioWidget.cpp View File

@@ -12,13 +12,13 @@ static std::string getDetailTemplate(std::string name, int numInputs, int inputO
std::string text = name; std::string text = name;
text += " ("; text += " (";
if (numInputs > 0) { if (numInputs > 0) {
text += string::f("%d-%d in", inputOffset + 1, inputOffset + numInputs + 1);
text += string::f("%d-%d in", inputOffset + 1, inputOffset + numInputs);
} }
if (numInputs > 0 && numOutputs > 0) { if (numInputs > 0 && numOutputs > 0) {
text += ", "; text += ", ";
} }
if (numOutputs > 0) { if (numOutputs > 0) {
text += string::f("%d-%d out", outputOffset + 1, outputOffset + numOutputs + 1);
text += string::f("%d-%d out", outputOffset + 1, outputOffset + numOutputs);
} }
text += ")"; text += ")";
return text; return text;


Loading…
Cancel
Save