audio

package
v0.0.0-...-c9c34e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Source *Device
	Sink   *Device
	// contains filtered or unexported fields
}

Audio is a adapt type over Pulseaudio module

func NewAudio

func NewAudio(cnf *config.Config, client *pulseaudio.Client) (*Audio, error)

NewAudio creates a new instance of audio manager

type Device

type Device struct {
	Description string
	Ports       []*DevicePort
	ActivePort  *DevicePort
	// contains filtered or unexported fields
}

Device

func NewDevice

func NewDevice(client *pulseaudio.Client, objectPath dbus.ObjectPath) (*Device, error)

NewDevice

func (*Device) SetActivePort

func (device *Device) SetActivePort(newActivePort *DevicePort) error

SetActivePort change the active port of the device with the one given

type DevicePort

type DevicePort struct {
	Description string
	// contains filtered or unexported fields
}

DevicePort

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL