volume

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

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

func NewVolumeControl

func NewVolumeControl(dryRun bool) (*Control, error)

NewVolumeControl returns a controller for toggling default input device's muted status. The controller is safe for multiple goroutines.

func (*Control) CheckMuted

func (c *Control) CheckMuted() (bool, error)

CheckMuted returns the default recording device's muted status

func (*Control) GetWSInfo

func (c *Control) GetWSInfo() gin.H

func (*Control) HandleWSMessage

func (c *Control) HandleWSMessage(ws *websocket.Conn, action int, value string)

func (*Control) Initialize

func (c *Control) Initialize() error

Initialize satisfies system/plugin.Plugin

func (*Control) Notify

func (c *Control) Notify(t plugin.Notification)

Notify satisfies system/plugin.Plugin

func (*Control) Run

func (c *Control) Run(haltCtx context.Context, cb chan<- plugin.Callback) <-chan error

Run satisfies system/plugin.Plugin

func (*Control) ToggleMuted

func (c *Control) ToggleMuted() error

ToggleMuted toggles the default recording device's muted status. Note: This should be called after CheckMuted() has been called once.

Jump to

Keyboard shortcuts

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