mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
Remote Kind field now exported.
Kind fields/methods now exported vmRem renamed vm in examples/tests. prefer short variable name. minor version bump
This commit is contained in:
14
kinds.go
14
kinds.go
@@ -9,25 +9,25 @@ var basic, banana, potato *kind
|
||||
|
||||
// A kind represents a Voicemeeter kinds layout
|
||||
type kind struct {
|
||||
name string
|
||||
physIn, virtIn, physOut, virtOut, vbanIn, vbanOut int
|
||||
Name string
|
||||
PhysIn, VirtIn, PhysOut, VirtOut, VbanIn, VbanOut int
|
||||
}
|
||||
|
||||
// numStrip returns the total number of strips for a kind
|
||||
func (k *kind) numStrip() int {
|
||||
n := k.physIn + k.virtIn
|
||||
func (k *kind) NumStrip() int {
|
||||
n := k.PhysIn + k.VirtIn
|
||||
return n
|
||||
}
|
||||
|
||||
// numBus returns the total number of buses for a kind
|
||||
func (k *kind) numBus() int {
|
||||
n := k.physOut + k.virtOut
|
||||
func (k *kind) NumBus() int {
|
||||
n := k.PhysOut + k.VirtOut
|
||||
return n
|
||||
}
|
||||
|
||||
// String implements the fmt.stringer interface
|
||||
func (k *kind) String() string {
|
||||
return fmt.Sprintf("%s%s", strings.ToUpper(k.name[:1]), k.name[1:])
|
||||
return fmt.Sprintf("%s%s", strings.ToUpper(k.Name[:1]), k.Name[1:])
|
||||
}
|
||||
|
||||
// newBasicKind returns a basic kind struct address
|
||||
|
||||
Reference in New Issue
Block a user