pulseaudio

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PulseAudio

type PulseAudio struct {
	Volume int
	Muted  bool
	// contains filtered or unexported fields
}

PulseAudio client

func New

func New() *PulseAudio

New returns a new PulseAudio client

func (*PulseAudio) DecreaseVolume

func (pa *PulseAudio) DecreaseVolume()

DecreaseVolume decreases the volume on the default sink by 2%

func (*PulseAudio) IncreaseVolume

func (pa *PulseAudio) IncreaseVolume()

IncreaseVolume increases the volume on the default sink by 2%

func (*PulseAudio) SetMute

func (pa *PulseAudio) SetMute(muted bool)

SetMute mutes or unmutes the default sink

func (*PulseAudio) SetVolume

func (pa *PulseAudio) SetVolume(volume string)

SetVolume sets the volume on the default sink

func (*PulseAudio) ToggleMute

func (pa *PulseAudio) ToggleMute()

ToggleMute toogles mute on the default sink

Jump to

Keyboard shortcuts

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