NASD.CONF(5)
π NASD.CONF(5) π
okay bestie, so this is the File Formats Manual page for nasd.conf, and honestly? it's giving "quiet config file that secretly runs your whole audio life." let's get into it π
β¨ NAME β¨
nasd.conf β the configuration file for NAS servers. that's it, that's the whole name, but the way it does so much π
πΈ DESCRIPTION πΈ
nasd.conf is a file you use to configure the behaiviour of the NAS server, and ngl it's a lot. it decides:
- what devices the server will attempt to use
- the minimum & maximum frequencies used
- if the device should be used in
8bitor16bitmode - what fragment size and number of fragments should be used (super useful for tuning the server's latency, fr)
- and if the server should be verbose when starting or output debugging information
not all options are supported for all servers, okay? so you have to check the /etc/nas/nasd.conf.eg file for information on what options are supported for which servers. no cap, go look. π
π¦ THE CONFIG FILE SYNTAX π¦
There are up to three section in the config file. yes, three, keep up β¨
- Section one deals with global options, some of which just turn on verbose messages when parsing the config file, and setting debug messages on.
- The remaining two sections will, if present, adjust various parameters of the input and output devices, for those servers that understand them.
π the global + device options, one by one π
verboseβ Sets a flag telling the server to report what it's trying to do with each setting in the config file. This option is off by default.debug <number>β Sets the debug flag, which will provide a trace of the server's activities onstderr. Set<number>to0to disable debug messages,99for alot of debug messages. This option defaults to0.ReleaseDevice YES | NOβ Set toYESorNO. Defines whether the server should release the audio device when finished playing or recording a sound. This option defaults toYES. (voxware, hpux, sun)KeepMixer YES | NOβ Set toYESorNO. Defines whether the server should keep the mixer open when releasing the audio device. Without an open mixer device the server will always report the default gain and line mode and cannot change them either. This option defaults toYES. (voxware)MixerInit YES | NOβ Set toYESorNO. Defines whether the server will init the mixer device on startup. Later changes of gain or input mode will change the mixer settings. This option defaults toNO. (voxware)ReInitMixer YES | NOβ Set toYESorNO. Defines whether the server will re-init the mixer device on every audio device open. The mixer is re-initialized only if it is initialized at startup (see theMixerInitoption). This option defaults toNO. (voxware)OutDevType EXT | INTβ For HPUX servers, define toEXTto use the external output device (headphone/speakers) orINTfor the internal output device (internal speaker). Defaults toEXT.outputsectionβ Marks the beginning of the output section, which allows various parameters of the output device to be set up. πinputsectionβ Marks the beginning of the input section, which allows various parameters of the input device to be set up. π€endβ Marks the end of the input section or output section. the little "that's all folks" moment πdevice <devname>β Specifies what device is used. An example isdevice "/dev/dsp". With the voxware server you can use the empty string""to disable the device.mixer <mixername>β Specifies what mixer device is used. An example ismixer "/dev/mixer". If<mixername>is set to the empty string""no mixer is used in this section.gain <number>β Specifies the default volume (0-100). The default is50.gainscale <number>β This factor (expressed as a percentage) is applied to all volume-setting requests. This lets the server transparently limit the actual maximum volume that can be set by clients. The default is100.maxrate <number>β The maximum number of samples per second that we'll drive the card at.minrate <number>β The minimum number of samples per second that the card will be driven at.maxfrags <number>β The maximum number of of kernel buffers that will be used for the device. the number is dynamically adjusted as the sampling frequency varies.minfrags <number>β The minimum number of kernel buffers that will be used.fragsize <number>β The size of each buffer β note that the size must be a power of 2. don't fight it, just pick a power of 2 π§wordsize <number>β The number of bits per sample. Allowable values are8and16.numchans <number>β Used to decide if the card is run in stereo or mono mode. Allowable values are1or2.forcerate no | yesβ Forces the output rate to the current rate. The default isno.autoOpen no | yesβ Whether to open the device at init time (ifReleaseDevice = no). The default isyes.readwrite no | yesβ Whether or not to open the device read-write. The default isno. If set toyes, then the device will be opened read-write. There should be no need to set this toyes, but... π
π SEE ALSO π
nas(1), nasd(1), auinfo(1), auplay(1), auctl(1)
like, go read those too, they're the supporting cast and they ate π
π BUGS π
Absolutely none.
(iconic. we love a confident config file. no notes. πβ¨)
π«Ά AUTHORS π«Ά
- Stephen Hocking (
sysseh@devetir.qld.gov.au) - Jon Trulson (
jon@radscan.com)
bestie reminder: every single option here is case-sensitive-ish and picky, so copy the names exactly, and check /etc/nas/nasd.conf.eg before you assume your server supports a thing. not all servers understand all of these. fr fr. πΈ
and that's the whole page, babe β this one came out of the NAS source, page 5 of the manuals, and there's genuinely no date stamped on it so we're just vibing with the version as-is. stay slay, keep your fragment size a power of 2, and go make some noise ππ¦π
π¦ where this page comes from
- debian bookworm: nas 1.9.4-7
- debian trixie: nas 1.9.4-9
- ubuntu jammy: nas 1.9.4-7build1
- ubuntu noble: nas 1.9.4-8
- ubuntu questing: nas 1.9.4-9
- ubuntu resolute: nas 1.9.4-9.2
- ubuntu stonking: nas 1.9.4-9.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms