mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-03 23:17:47 +00:00
remove methods now implemented in headamp struct
This commit is contained in:
parent
08b232dcbf
commit
625987759f
@ -128,25 +128,3 @@ func (s *Strip) SetSendLevel(strip int, bus int, level float64) error {
|
||||
address := fmt.Sprintf(s.baseAddress, strip) + fmt.Sprintf("/mix/%02d/level", bus)
|
||||
return s.client.SendMessage(address, float32(mustDbInto(level)))
|
||||
}
|
||||
|
||||
// MicGain requests the phantom gain for a specific strip (1-based indexing).
|
||||
func (s *Strip) MicGain(strip int) (float64, error) {
|
||||
address := fmt.Sprintf(s.baseAddress, strip) + "/mix/gain"
|
||||
err := s.client.SendMessage(address)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("failed to send strip gain request: %v", err)
|
||||
}
|
||||
|
||||
resp := <-s.client.respChan
|
||||
val, ok := resp.Arguments[0].(float32)
|
||||
if !ok {
|
||||
return 0, fmt.Errorf("unexpected argument type for strip gain value")
|
||||
}
|
||||
return mustDbFrom(float64(val)), nil
|
||||
}
|
||||
|
||||
// SetMicGain sets the phantom gain for a specific strip (1-based indexing).
|
||||
func (s *Strip) SetMicGain(strip int, gain float64) error {
|
||||
address := fmt.Sprintf(s.baseAddress, strip) + "/mix/gain"
|
||||
return s.client.SendMessage(address, float32(mustDbInto(gain)))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user