mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
onyx-and-iris
b116f04f51
True for Bus, Strip, Vban and Output types. Bus[i].Eq() and Strip[i].Eq() now return pointers to eQ structs. This makes it easier to extend Eq types in future if desired. Strip[i].Comp() now return pointer to comp struct Strip[i].Gain() now return pointer to gain struct This is to support the new API features in Potato 3.0.2.8 Removed casting in factory function return statements. Since types are satisfied implicitly. eQ struct type tests added
26 lines
347 B
Go
26 lines
347 B
Go
package voicemeeter
|
|
|
|
type eQ struct {
|
|
iRemote
|
|
}
|
|
|
|
func newEq(id string, i int) *eQ {
|
|
return &eQ{iRemote{id, i}}
|
|
}
|
|
|
|
func (e *eQ) On() bool {
|
|
return e.getter_bool("on")
|
|
}
|
|
|
|
func (e *eQ) SetOn(val bool) {
|
|
e.setter_bool("on", val)
|
|
}
|
|
|
|
func (e *eQ) Ab() bool {
|
|
return e.getter_bool("AB")
|
|
}
|
|
|
|
func (e *eQ) SetAb(val bool) {
|
|
e.setter_bool("AB", val)
|
|
}
|