asctl(1) - SerenityOS man pages

Name

asctl - Send control signals to the audio server and hardware

Synopsis

$ asctl [--human-readable] <command> [args...]

Description

This program is used to send control signals to the AudioServer and the sound hardware. This allows changing audio server variables like volume and mute state, as well as querying the state of these variables.

Options

Arguments

There are two commands available: get reports the state of audio variables, and set changes these variables.

get expects a list of variables to report back, and it will report them in the order given. The exact format of the report depends on the --human-readable flag. If no variables are given, get will report all available variables, in the order that they are listed below.

set expects one or more variables followed by a value to set them to, and will set the variables to the given values. A variable can be given multiple times and the last specified value will remain with the audio server.

The available variables are:

Both commands and arguments can be abbreviated: Commands by their first letter, arguments by the letter in parenthesis.

Examples

Get the current volume (machine format)
$ asctl get volume
100

Get all variables
$ asctl -h get
Volume: 100
Muted: No
Sample rate: 48000 Hz

Set the volume to 100%
$ asctl set volume 100

Mute all audio
$ asctl set mute true

Unmute all audio, set volume to 80%
$ asctl s m 0 v 80

Set sample rate
$ asctl s samplerate 48000