feat: added mute and AGC-T to Flex control

This commit is contained in:
2026-06-27 21:03:13 +02:00
parent 19c5045dc6
commit 464a1c702c
7 changed files with 41 additions and 10 deletions
+7
View File
@@ -7406,6 +7406,13 @@ func (a *App) FlexSetAudioLevel(l int) error {
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetAudioLevel(l) })
}
func (a *App) FlexSetMute(on bool) error {
if a.cat == nil {
return fmt.Errorf("cat not initialized")
}
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetMute(on) })
}
func (a *App) FlexSetNB(on bool) error {
if a.cat == nil {
return fmt.Errorf("cat not initialized")