Documentation
¶
Index ¶
- func ListenForChanges(callback func())
- func MoveSinkInput(sinkInputID string, sinkName string)
- func MoveSourceOutput(sourceOutputID string, sourceName string)
- func SetDefaultSink(sinkName string)
- func SetDefaultSource(sourceName string)
- func SetSinkInputMuted(sinkInputID string, muted bool)
- func SetSinkInputVolume(sinkInputID string, volume string)
- func SetSinkMuted(sinkName string, muted bool)
- func SetSinkVolume(sinkName string, volume string)
- func SetSourceInputMuted(sourceInputID string, muted bool)
- func SetSourceInputVolume(sourceInputID string, volume string)
- func SetSourceMuted(sourceName string, muted bool)
- func SetSourceVolume(sourceName string, volume string)
- type Sink
- type SinkInput
- type Source
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenForChanges ¶
func ListenForChanges(callback func())
func MoveSinkInput ¶
func MoveSourceOutput ¶
func SetDefaultSink ¶
func SetDefaultSink(sinkName string)
func SetDefaultSource ¶
func SetDefaultSource(sourceName string)
func SetSinkInputMuted ¶
func SetSinkInputVolume ¶
func SetSinkMuted ¶
func SetSinkVolume ¶
func SetSourceInputMuted ¶
func SetSourceInputVolume ¶
func SetSourceMuted ¶
func SetSourceVolume ¶
Types ¶
type Sink ¶
type Sink struct {
ID int `json:"id" doc:"The id of the sink. Same as name"`
Name string `json:"name" doc:"The name of the sink. Same as id"`
Label string `json:"label" doc:"Human-readable label for the sink"`
Volume int `json:"volume" doc:"Current volume level of the sink"`
Muted bool `json:"muted" doc:"Whether the sink is muted"`
IsDefault bool `json:"isDefault" doc:"Whether this sink is the current default"`
}
type SinkInput ¶
type SinkInput struct {
ID int `json:"id" doc:"The id of the sink. Same as name"`
SinkID int `json:"sinkId" doc:"Id of parrent device, same as sink.id"`
Label string `json:"label" doc:"Human-readable label for the sink"`
Volume int `json:"volume" doc:"Current volume level of the sink"`
Muted bool `json:"muted" doc:"Whether the sink is muted"`
}
func GetSinkInputs ¶
type Source ¶
type Source struct {
ID int `json:"id" doc:"Unique numeric identifier of the source"`
Name string `json:"name" doc:"Unique string identifier of the source"`
Label string `json:"label" doc:"Human-readable label for the source"`
Volume int `json:"volume" doc:"Current volume level of the source"`
Muted bool `json:"muted" doc:"Whether the source is muted"`
Monitor string `json:"monitor" doc:"Name of monitor source"`
Monitored bool `json:"monitored" doc:"Whether source is being monitored"`
IsDefault bool `json:"isDefault" doc:"Whether this source is the current default"`
}
func GetSources ¶
type Status ¶
type Status = struct {
Sinks []Sink `json:"sinks" doc:"List of audio devices"`
SinkInputs []SinkInput `json:"sinkInputs" doc:"List of applications that are playing audio"`
Sources []Source `json:"sources" doc:"List of microphones and other sources"`
BuildInfo buildinfo.BuildInfo `json:"buildInfo" doc:"Build information"`
}
Click to show internal directories.
Click to hide internal directories.