audio

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package audio provides functions to read system audio volume information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMuted

func IsMuted() (bool, error)

IsMuted returns whether the system audio is currently muted.

func Level

func Level() (int, error)

Level returns just the volume level (0-100).

Types

type VolumeInfo

type VolumeInfo struct {
	Level int  // Volume level (0-100)
	Muted bool // Whether audio is muted
}

VolumeInfo represents audio volume information.

func Summary

func Summary(ctx *types.Context) (*VolumeInfo, error)

Summary retrieves the current system volume information.

Jump to

Keyboard shortcuts

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