AUDIOCTL(1)

NAME
audioctl - control audio device

SYNOPSIS
audioctl [-f file] [-n] -a
[-f file] [-n] name ...
[-f file] [-n] -w name=value ...

DESCRIPTION
The audioctl command displays or sets various audio system driver variables. If a list of variables is present on the command line, then audioctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are printed. If the -w flag is specified audioctl attempts to set the specified variables to the given values.

The -f flag can be used to give an alternative audio control device, the default is /dev/audioctl.

The -n flag suppresses printing of the variable name.

EXAMPLES
To set the playing sampling rate to 11025 you can enter
    audioctl -w play.sample_rate=11025
Note that many of the variables that can be inspected and changed with audioctl are reset when the device is opened. This can be circumvented like this
    (cat file.au; audioctl -f /dev/stdout -a) > /dev/audio
or
    (audioctl -f /dev/stdout -w blocksize=1024; cat file.au) > /dev/audio

FILES

/dev/audioctl
    audio device

SEE ALSO
mixerctl(1), audio(4), sysctl(8)

HISTORY
The audioctl command first appeared in NetBSD 1.3.