mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
enable revive linter
- add package comments - fix redeclaration of built-in min/max - add comments to exported types - remove unused parameters
This commit is contained in:
@@ -2,6 +2,7 @@ package xair
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Strip represents an input channel strip on the mixer.
|
||||
type Strip struct {
|
||||
client *client
|
||||
baseAddress string
|
||||
@@ -43,7 +44,7 @@ func (s *Strip) Mute(index int) (bool, error) {
|
||||
// SetMute sets the mute status of the specified strip (1-based indexing).
|
||||
func (s *Strip) SetMute(strip int, muted bool) error {
|
||||
address := fmt.Sprintf(s.baseAddress, strip) + "/mix/on"
|
||||
var value int32 = 0
|
||||
var value int32
|
||||
if !muted {
|
||||
value = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user