From 08967bc1a19aab71c73be5fdbb348c5b6e6362d7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 1 Jul 2022 00:21:52 +0100 Subject: [PATCH] fix identifier in outputs --- voicemeeter/outputs.go | 6 ++++-- voicemeeter/strip.go | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/voicemeeter/outputs.go b/voicemeeter/outputs.go index c8fded0..b6069bf 100644 --- a/voicemeeter/outputs.go +++ b/voicemeeter/outputs.go @@ -1,5 +1,7 @@ package voicemeeter +import "fmt" + type t_outputs interface { GetA1() bool SetA1(val bool) @@ -23,8 +25,8 @@ type outputs struct { iRemote } -func newOutputs(id string, i int) outputs { - o := outputs{iRemote{id, i}} +func newOutputs(i int) outputs { + o := outputs{iRemote{fmt.Sprintf("strip[%d]", i), i}} return o } diff --git a/voicemeeter/strip.go b/voicemeeter/strip.go index 099580c..3fdb309 100644 --- a/voicemeeter/strip.go +++ b/voicemeeter/strip.go @@ -114,7 +114,7 @@ type physicalStrip struct { } func newPhysicalStrip(i int, k *kind) t_strip { - o := newOutputs("strip[%d]", i) + o := newOutputs(i) gl := make([]gainLayer, 8) for j := 0; j < 8; j++ { gl[j] = newGainLayer(i, j) @@ -174,7 +174,7 @@ type virtualStrip struct { } func newVirtualStrip(i int, k *kind) t_strip { - o := newOutputs("strip[%d]", i) + o := newOutputs(i) gl := make([]gainLayer, 8) for j := 0; j < 8; j++ { gl[j] = newGainLayer(i, j)