mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-03 23:17:47 +00:00
zero val
This commit is contained in:
parent
c299740611
commit
0736baea4b
@ -334,7 +334,7 @@ func (c *Client) BusMute(bus int) (bool, error) {
|
||||
func (c *Client) SetBusMute(bus int, muted bool) error {
|
||||
formatter := c.addressMap["bus"]
|
||||
address := fmt.Sprintf(formatter, bus) + "/mix/on"
|
||||
var value int32 = 0
|
||||
var value int32
|
||||
if !muted {
|
||||
value = 1
|
||||
}
|
||||
@ -405,7 +405,7 @@ func (c *Client) MainLRMute() (bool, error) {
|
||||
|
||||
// SetMainLRMute sets the main L/R mute status
|
||||
func (c *Client) SetMainLRMute(muted bool) error {
|
||||
var value int32 = 0
|
||||
var value int32
|
||||
if !muted {
|
||||
value = 1
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user