Browse Source

Change audio interface numbers to one-indexed

tags/v0.3.1
Andrew Belt 7 years ago
parent
commit
f14cafc117
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/core/AudioInterface.cpp

+ 4
- 4
src/core/AudioInterface.cpp View File

@@ -502,7 +502,7 @@ AudioInterfaceWidget::AudioInterfaceWidget() {
addInput(createInput<PJ3410Port>(Vec(xPos, yPos), module, AudioInterface::AUDIO1_INPUT + i));
Label *label = new Label();
label->box.pos = Vec(xPos + 4, yPos + 28);
label->text = stringf("%d", i);
label->text = stringf("%d", i + 1);
addChild(label);

xPos += 37 + margin;
@@ -515,7 +515,7 @@ AudioInterfaceWidget::AudioInterfaceWidget() {
addInput(createInput<PJ3410Port>(Vec(xPos, yPos), module, AudioInterface::AUDIO1_INPUT + i));
Label *label = new Label();
label->box.pos = Vec(xPos + 4, yPos + 28);
label->text = stringf("%d", i);
label->text = stringf("%d", i + 1);
addChild(label);

xPos += 37 + margin;
@@ -536,7 +536,7 @@ AudioInterfaceWidget::AudioInterfaceWidget() {
addOutput(createOutput<PJ3410Port>(Vec(xPos, yPos), module, AudioInterface::AUDIO1_OUTPUT + i));
Label *label = new Label();
label->box.pos = Vec(xPos + 4, yPos + 28);
label->text = stringf("%d", i);
label->text = stringf("%d", i + 1);
addChild(label);

xPos += 37 + margin;
@@ -549,7 +549,7 @@ AudioInterfaceWidget::AudioInterfaceWidget() {
addOutput(createOutput<PJ3410Port>(Vec(xPos, yPos), module, AudioInterface::AUDIO1_OUTPUT + i));
Label *label = new Label();
label->box.pos = Vec(xPos + 4, yPos + 28);
label->text = stringf("%d", i);
label->text = stringf("%d", i + 1);
addChild(label);

xPos += 37 + margin;


Loading…
Cancel
Save