volume

package module
v0.0.0-...-67c18d0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMuted

func GetMuted(outputdevice string) (bool, error)

GetMuted returns the current muted status.

func GetVolume

func GetVolume(outputdevice string) (int, error)

GetVolume returns the current volume (0 to 100).

func IncreaseVolume

func IncreaseVolume(diff int, outputdevice string) error

IncreaseVolume increases (or decreases) the audio volume by the specified value.

func Mute

func Mute(outputdevice string) error

Mute mutes the audio.

func SetVolume

func SetVolume(volume int, outputdevice string) error

SetVolume sets the sound volume to the specified value.

func Unmute

func Unmute(outputdevice string) error

Unmute unmutes the audio.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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