From a2098eeb3074feef703f965225bbf78d2081d015 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 23 Jun 2022 14:06:48 +0100 Subject: [PATCH] command, vban added to remote factory method. --- voicemeeter/remote.go | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/voicemeeter/remote.go b/voicemeeter/remote.go index fb0775a..1c0bba0 100644 --- a/voicemeeter/remote.go +++ b/voicemeeter/remote.go @@ -8,10 +8,12 @@ import ( // A remote type represents the API for a kind, // comprised of slices representing each member type remote struct { - kind *kind - Strip []t_strip - Bus []t_bus - Button []button + kind *kind + Strip []t_strip + Bus []t_bus + Button []button + Command *command + Vban *vban } // String implements the stringer interface @@ -65,7 +67,7 @@ func NewRemote(kind_id string) *remote { } _bus := make([]t_bus, _kind.numBus()) for i := 0; i < _kind.physOut+_kind.virtOut; i++ { - if i < _kind.physIn { + if i < _kind.physOut { _bus[i] = newPhysicalBus(i, _kind) } else { _bus[i] = newVirtualBus(i, _kind) @@ -75,11 +77,15 @@ func NewRemote(kind_id string) *remote { for i := 0; i < 80; i++ { _button[i] = newButton(i) } + _command := newCommand() + _vban := newVban(_kind) return &remote{ - kind: _kind, - Strip: _strip, - Bus: _bus, - Button: _button, + kind: _kind, + Strip: _strip, + Bus: _bus, + Button: _button, + Command: _command, + Vban: _vban, } }