pulsehelper

package
v0.0.0-...-5210794 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

see Work() for why this exists

func New

func New() (*Helper, func() error)

TODO: defer connection making to time of first use?

func (*Helper) Close

func (p *Helper) Close() error

func (*Helper) Work

func (p *Helper) Work(work func(client *pulseaudio.Client) error) error

wrapper for doing work with PulseAudio client, with reconnection support. connection breaks every time PulseAudio is reloaded (think `$ systemctl --user restart pulseaudio`)

Jump to

Keyboard shortcuts

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