This is a little writeup about the configuration of the OpenAL SI implementation which is used on Linux, BSD and others (MacOS/X and Windows have their own implementations which are different). Unfortunately there seems to be no documentation about how to configure ALSA yet, so we provide this as an interim solution.
OpenAL is first trying to read a user settings from an .openalrc in the users home directory if it exists ($HOME/.openalrc). If it can't be found then /etc/openalrc is used. If this also fails the following default settings apply:
(define speaker-num 2)
(define display-banner #t)
(define source-gain 1.0)
This is from the source code, however there seems to be no code to handle display-banner and source-gain...
The settings files are written in LISP (Wikipedia about LISP). Variables get defined with the define command. Example:
(define somevar 5.0)
(define someStringVar
“hello
”)
(define someList '(id1 id2 id3))
Normal Linux config, try ALSA and dsp, then fallback to arts and esd or no audio. Stereo sound in CD Quality (44,1khz):
(define devices '(alsa native arts esd null))
(define alsa-device
“default
”)
(define speaker-num 2)
(define sampling-rate 44100)
ALSA surround sound with a 5.1 sound system and 48khz high quality audio:
(define devices '(alsa))
(define speaker-num 6)
(define alsa-out-device
“surround51:0,0
”)
(define alsa-in-device
“hw:0,0
”)
(define sampling-rate 48000)