mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
command, vban added to remote factory method.
This commit is contained in:
parent
69b0f3cdbf
commit
a2098eeb30
@ -12,6 +12,8 @@ type remote struct {
|
|||||||
Strip []t_strip
|
Strip []t_strip
|
||||||
Bus []t_bus
|
Bus []t_bus
|
||||||
Button []button
|
Button []button
|
||||||
|
Command *command
|
||||||
|
Vban *vban
|
||||||
}
|
}
|
||||||
|
|
||||||
// String implements the stringer interface
|
// String implements the stringer interface
|
||||||
@ -65,7 +67,7 @@ func NewRemote(kind_id string) *remote {
|
|||||||
}
|
}
|
||||||
_bus := make([]t_bus, _kind.numBus())
|
_bus := make([]t_bus, _kind.numBus())
|
||||||
for i := 0; i < _kind.physOut+_kind.virtOut; i++ {
|
for i := 0; i < _kind.physOut+_kind.virtOut; i++ {
|
||||||
if i < _kind.physIn {
|
if i < _kind.physOut {
|
||||||
_bus[i] = newPhysicalBus(i, _kind)
|
_bus[i] = newPhysicalBus(i, _kind)
|
||||||
} else {
|
} else {
|
||||||
_bus[i] = newVirtualBus(i, _kind)
|
_bus[i] = newVirtualBus(i, _kind)
|
||||||
@ -75,11 +77,15 @@ func NewRemote(kind_id string) *remote {
|
|||||||
for i := 0; i < 80; i++ {
|
for i := 0; i < 80; i++ {
|
||||||
_button[i] = newButton(i)
|
_button[i] = newButton(i)
|
||||||
}
|
}
|
||||||
|
_command := newCommand()
|
||||||
|
_vban := newVban(_kind)
|
||||||
|
|
||||||
return &remote{
|
return &remote{
|
||||||
kind: _kind,
|
kind: _kind,
|
||||||
Strip: _strip,
|
Strip: _strip,
|
||||||
Bus: _bus,
|
Bus: _bus,
|
||||||
Button: _button,
|
Button: _button,
|
||||||
|
Command: _command,
|
||||||
|
Vban: _vban,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user