From f14cafc117db89629644799a2d39aa11d56a2a1a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 13 Sep 2017 04:07:32 -0400 Subject: [PATCH] Change audio interface numbers to one-indexed --- src/core/AudioInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/AudioInterface.cpp b/src/core/AudioInterface.cpp index 4bb8422f..618e10ff 100644 --- a/src/core/AudioInterface.cpp +++ b/src/core/AudioInterface.cpp @@ -502,7 +502,7 @@ AudioInterfaceWidget::AudioInterfaceWidget() { addInput(createInput(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(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(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(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;