fix identifier in outputs

This commit is contained in:
onyx-and-iris 2022-07-01 00:21:52 +01:00
parent dd5abafa66
commit 08967bc1a1
2 changed files with 6 additions and 4 deletions

View File

@ -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
}

View File

@ -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)