Versions in this module Expand all Collapse all v0 v0.1.0 Oct 9, 2026 Changes in this version + type Card struct + Name string + Number int + func FindCard(identifier string) (*Card, error) + func ListCards() ([]*Card, error) + func OpenCard(cardNum int) (*Card, error) + func (c *Card) Close() error + func (c *Card) FindControl(name string) (*Control, error) + func (c *Card) FindControlByID(id string) (*Control, error) + func (c *Card) FindControlByPrefix(prefix string) (*Control, error) + func (c *Card) FindControlsMatching(pattern string) ([]*Control, error) + func (c *Card) GetControls() ([]*Control, error) + func (c *Card) GetMixerInput(mixName string, inputNum int) (*Control, error) + func (c *Card) GetMixerInputs() ([]MixerInput, error) + func (c *Card) GetMixerLevel(mixName string, inputNum int) (int64, error) + func (c *Card) GetPollFds() []int + func (c *Card) GetPreampChannel(channelNum int) (*PreampChannel, error) + func (c *Card) GetPreampChannels() ([]PreampChannel, error) + func (c *Card) GetRouting() (map[string]int, error) + func (c *Card) GetRoutingSinks() ([]RoutingSink, error) + func (c *Card) GetRoutingSources() ([]RoutingSource, error) + func (c *Card) IsScarlett() bool + func (c *Card) NewEventMonitor() *EventMonitor + func (c *Card) PrintMixerState() error + func (c *Card) PrintPreampState() error + func (c *Card) PrintRoutingMatrix() error + func (c *Card) SetMixerLevel(mixName string, inputNum int, level int64) error + func (c *Card) SetPreampAir(channelNum int, enabled bool) error + func (c *Card) SetPreampGain(channelNum int, gain int64) error + func (c *Card) SetPreampPad(channelNum int, enabled bool) error + func (c *Card) SetPreampPhantom(channelNum int, enabled bool) error + func (c *Card) SetRouting(sinkName string, sourceID int) error + func (c *Card) SetRoutingByNames(sinkName, sourceName string) error + func (c *Card) String() string + func (c *Card) WatchWithDisplay() error + type Control struct + Count int + Device uint + Index int + Interface InterfaceType + Items []string + Max int64 + Min int64 + Name string + NumID uint + Subdevice uint + Type ControlType + func (ctl *Control) DetailedString() string + func (ctl *Control) FullID() string + func (ctl *Control) GetValue() (int64, error) + func (ctl *Control) GetValueString() (string, error) + func (ctl *Control) SetValue(value int64) error + func (ctl *Control) SetValueByString(valueStr string) error + func (ctl *Control) String() string + type ControlType int + const ControlTypeBoolean + const ControlTypeBytes + const ControlTypeEnumerated + const ControlTypeIEC958 + const ControlTypeInteger + const ControlTypeInteger64 + const ControlTypeNone + func (t ControlType) String() string + type EventCallback func(control *Control) + type EventMonitor struct + func (em *EventMonitor) Stop() + func (em *EventMonitor) Watch(callback func(numid uint) error) error + func (em *EventMonitor) WatchControls(callback func(control *Control, value int64) error) error + type InterfaceType int + const InterfaceCard + const InterfaceHwDep + const InterfaceMixer + const InterfacePCM + const InterfaceRawMidi + const InterfaceSequencer + const InterfaceTimer + func (i InterfaceType) String() string + type MixerInput struct + Control *Control + InputNum int + MixName string + type PortCategory int + const PortCategoryDSP + const PortCategoryHW + const PortCategoryMix + const PortCategoryOff + const PortCategoryPCM + func (p PortCategory) String() string + type PreampChannel struct + Air *Control + Autogain *Control + ChannelNum int + Gain *Control + Impedance *Control + Level *Control + Link *Control + Pad *Control + Phantom *Control + Safe *Control + type RoutingSink struct + Category PortCategory + Control *Control + Index int + Name string + PortNum int + type RoutingSource struct + Category PortCategory + HardwareType string + ID int + Name string + PortNum int