mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-12-04 18:20:48 +00:00
docstring fix
var rename in makeStrip, makeBus
This commit is contained in:
parent
95963ead14
commit
ca62f9ff3c
@ -6,8 +6,8 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// iRemote provides an interface between higher methods and lower functions
|
// iRemote provides an interface between higher types and functions that
|
||||||
// expected to be embedded
|
// wrap CAPI calls
|
||||||
type iRemote struct {
|
type iRemote struct {
|
||||||
_identifier string
|
_identifier string
|
||||||
index int
|
index int
|
||||||
|
22
remote.go
22
remote.go
@ -202,15 +202,15 @@ func (b *genericBuilder) setKind() remoteBuilder {
|
|||||||
// []iStrip comprises of both physical and virtual strip types
|
// []iStrip comprises of both physical and virtual strip types
|
||||||
func (b *genericBuilder) makeStrip() remoteBuilder {
|
func (b *genericBuilder) makeStrip() remoteBuilder {
|
||||||
log.Info("building strip")
|
log.Info("building strip")
|
||||||
_strip := make([]iStrip, b.k.NumStrip())
|
strip := make([]iStrip, b.k.NumStrip())
|
||||||
for i := 0; i < b.k.NumStrip(); i++ {
|
for i := 0; i < b.k.NumStrip(); i++ {
|
||||||
if i < b.k.PhysIn {
|
if i < b.k.PhysIn {
|
||||||
_strip[i] = newPhysicalStrip(i, b.k)
|
strip[i] = newPhysicalStrip(i, b.k)
|
||||||
} else {
|
} else {
|
||||||
_strip[i] = newVirtualStrip(i, b.k)
|
strip[i] = newVirtualStrip(i, b.k)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b.r.Strip = _strip
|
b.r.Strip = strip
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,26 +218,26 @@ func (b *genericBuilder) makeStrip() remoteBuilder {
|
|||||||
// []t_bus comprises of both physical and virtual bus types
|
// []t_bus comprises of both physical and virtual bus types
|
||||||
func (b *genericBuilder) makeBus() remoteBuilder {
|
func (b *genericBuilder) makeBus() remoteBuilder {
|
||||||
log.Info("building bus")
|
log.Info("building bus")
|
||||||
_bus := make([]iBus, b.k.NumBus())
|
bus := make([]iBus, b.k.NumBus())
|
||||||
for i := 0; i < b.k.NumBus(); i++ {
|
for i := 0; i < b.k.NumBus(); i++ {
|
||||||
if i < b.k.PhysOut {
|
if i < b.k.PhysOut {
|
||||||
_bus[i] = newPhysicalBus(i, b.k)
|
bus[i] = newPhysicalBus(i, b.k)
|
||||||
} else {
|
} else {
|
||||||
_bus[i] = newVirtualBus(i, b.k)
|
bus[i] = newVirtualBus(i, b.k)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b.r.Bus = _bus
|
b.r.Bus = bus
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
// makeButton makes a button slice and assigns it to remote.Button
|
// makeButton makes a button slice and assigns it to remote.Button
|
||||||
func (b *genericBuilder) makeButton() remoteBuilder {
|
func (b *genericBuilder) makeButton() remoteBuilder {
|
||||||
log.Info("building button")
|
log.Info("building button")
|
||||||
_button := make([]button, 80)
|
button := make([]button, 80)
|
||||||
for i := 0; i < 80; i++ {
|
for i := 0; i < 80; i++ {
|
||||||
_button[i] = newButton(i)
|
button[i] = newButton(i)
|
||||||
}
|
}
|
||||||
b.r.Button = _button
|
b.r.Button = button
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user