Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2023 Changes in this version + func RuntimePath(fn string) (string, error) + type Card struct + ActiveProfile *profile + Driver string + Index uint32 + Module uint32 + Name string + Ports []port + Profiles map[string]*profile + PropList map[string]string + type Client struct + func NewClient(serverAddr string) (*Client, error) + func (c *Client) Cards() ([]Card, error) + func (c *Client) Close() + func (c *Client) Connected() bool + func (c *Client) LoadModule(name string, argument string) (index uint32, err error) + func (c *Client) ModuleList() ([]Module, error) + func (c *Client) Mute() (bool, error) + func (c *Client) ServerInfo() (*Server, error) + func (c *Client) SetCardProfile(cardIndex uint32, profileName string) error + func (c *Client) SetMute(b bool) error + func (c *Client) SetSinkVolume(sinkName string, volume float32) error + func (c *Client) SetVolume(volume float32) error + func (c *Client) Sinks() ([]Sink, error) + func (c *Client) Sources() ([]Source, error) + func (c *Client) ToggleMute() (bool, error) + func (c *Client) UnloadModule(index uint32) error + func (c *Client) Updates() (updates <-chan struct{}, err error) + func (c *Client) Volume() (float32, error) + type Error struct + Cmd string + Code uint32 + func (err *Error) Error() string + type Module struct + Argument string + Index uint32 + NUsed uint32 + Name string + PropList map[string]string + func (s *Module) ReadFrom(r io.Reader) (int64, error) + type Server struct + ChannelMap channelMap + Cookie uint32 + DefaultSink string + DefaultSource string + Hostname string + PackageName string + PackageVersion string + SampleSpec sampleSpec + User string + func (s *Server) ReadFrom(r io.Reader) (int64, error) + type Sink struct + ActivePortName string + BaseVolume uint32 + CardIndex uint32 + ChannelMap channelMap + Cvolume cvolume + Description string + Driver string + Flags uint32 + Formats []formatInfo + Index uint32 + Latency uint64 + ModuleIndex uint32 + MonitorSourceIndex uint32 + MonitorSourceName string + Muted bool + NVolumeSteps uint32 + Name string + Ports []sinkPort + PropList map[string]string + RequestedLatency uint64 + SampleSpec sampleSpec + SinkState uint32 + func (s *Sink) ReadFrom(r io.Reader) (int64, error) + type Source struct + ActivePortName string + BaseVolume uint32 + CardIndex uint32 + ChannelMap channelMap + Cvolume cvolume + Description string + Driver string + Flags uint32 + Formats []formatInfo + Index uint32 + Latency uint64 + ModuleIndex uint32 + MonitorSourceIndex uint32 + MonitorSourceName string + Muted bool + NVolumeSteps uint32 + Name string + Ports []sinkPort + PropList map[string]string + RequestedLatency uint64 + SampleSpec sampleSpec + SinkState uint32 + func (s *Source) ReadFrom(r io.Reader) (int64, error)