mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
strip3a1 added to higher tests
pdirty, mdirty added to readme
This commit is contained in:
parent
18ece8a6b8
commit
dd5abafa66
24
README.md
24
README.md
@ -79,17 +79,20 @@ pointer to device type, represents physical input/output hardware devices
|
||||
#### `vmRem.Recorder`
|
||||
pointer to recorder type, represents the recorder
|
||||
|
||||
#### `vmRem.Type`
|
||||
#### `vmRem.Type()`
|
||||
returns the type of Voicemeeter as a string
|
||||
#### `vmRem.Version`
|
||||
#### `vmRem.Version()`
|
||||
returns the version of Voicemeeter as a string
|
||||
#### `vmRem.SendText`
|
||||
sets many parameters in script format ("Strip[0].Mute=1;Bus[3].Gain=3.6")
|
||||
#### `vmRem.Register`
|
||||
#### `vmRem.SendText(<script>)`
|
||||
sets many parameters in script format eg. ("Strip[0].Mute=1;Bus[3].Gain=3.6")
|
||||
#### `vmRem.Register(o observer)`
|
||||
register an object as an observer
|
||||
#### `vmRem.Deregister`
|
||||
#### `vmRem.Deregister(o observer)`
|
||||
deregister an object as an observer
|
||||
|
||||
#### `vmRem.Pdirty()`
|
||||
returns True iff a GUI parameter has changed
|
||||
#### `vmRem.Mdirty()`
|
||||
returns True iff a macrobutton paramter has changed
|
||||
|
||||
## `Available commands`
|
||||
|
||||
@ -120,6 +123,13 @@ The following functions are available
|
||||
- `GetA1() bool - GetA5() bool`
|
||||
- `SetA1(val bool) - SetA5(val bool)`
|
||||
|
||||
example:
|
||||
|
||||
```go
|
||||
vmRem.Strip[3].SetGain(3.7)
|
||||
fmt.Println(vmRem.Strip[0].GetLabel())
|
||||
```
|
||||
|
||||
### Bus
|
||||
|
||||
The following functions are available
|
||||
|
@ -21,6 +21,21 @@ func TestStrip0Mute(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestStrip3A1(t *testing.T) {
|
||||
//t.Skip("skipping test")
|
||||
vmRem.Strip[3].SetA1(true)
|
||||
sync()
|
||||
t.Run("Should return true when SetA1(true)", func(t *testing.T) {
|
||||
assert.True(t, vmRem.Strip[3].GetA1())
|
||||
})
|
||||
|
||||
vmRem.Strip[3].SetA1(false)
|
||||
sync()
|
||||
t.Run("Should return false when SetA1(false)", func(t *testing.T) {
|
||||
assert.False(t, vmRem.Strip[3].GetA1())
|
||||
})
|
||||
}
|
||||
|
||||
func TestStrip2Limit(t *testing.T) {
|
||||
//t.Skip("skipping test")
|
||||
vmRem.Strip[2].SetLimit(-8)
|
||||
|
@ -173,7 +173,7 @@ func (b *genericBuilder) makeVban() remoteBuilder {
|
||||
|
||||
// makeVban makes a Vban type and assigns it to remote.Vban
|
||||
func (b *genericBuilder) makeDevice() remoteBuilder {
|
||||
fmt.Println("building recorder")
|
||||
fmt.Println("building device")
|
||||
b.r.Device = newDevice()
|
||||
return b
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ type physicalStrip struct {
|
||||
}
|
||||
|
||||
func newPhysicalStrip(i int, k *kind) t_strip {
|
||||
o := newOutputs("strip", i)
|
||||
o := newOutputs("strip[%d]", 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", i)
|
||||
o := newOutputs("strip[%d]", i)
|
||||
gl := make([]gainLayer, 8)
|
||||
for j := 0; j < 8; j++ {
|
||||
gl[j] = newGainLayer(i, j)
|
||||
|
Loading…
Reference in New Issue
Block a user