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)