Hold the lock while finding a capture device to open
[openal-soft.git] / alsoftrc.sample
blob291ca71b98fe6339ebbf7fff268d4aefb23fe6a5
1 # OpenAL config file. Options that are not under a block or are under the
2 # [general] block are for general, non-backend-specific options. Blocks may
3 # appear multiple times, and duplicated options will take the last value
4 # specified.
5 # The system-wide settings can be put in /etc/openal/alsoft.conf and user-
6 # specific override settings in ~/.alsoftrc.
7 # For Windows, these settings should go into %AppData%\alsoft.ini
8 # The environment variable ALSOFT_CONF can be used to specify another config
9 # override
11 # Option and block names are case-insenstive. The supplied values are only
12 # hints and may not be honored (though generally it'll try to get as close as
13 # possible). Note: options that are left unset may default to app- or system-
14 # specified values. These are the current available settings:
16 ## format:
17 #  Sets the output format. Can be one of:
18 #  AL_FORMAT_MONO8    (8-bit mono)
19 #  AL_FORMAT_STEREO8  (8-bit stereo)
20 #  AL_FORMAT_QUAD8    (8-bit 4-channel)
21 #  AL_FORMAT_51CHN8   (8-bit 5.1 output)
22 #  AL_FORMAT_61CHN8   (8-bit 6.1 output)
23 #  AL_FORMAT_71CHN8   (8-bit 7.1 output)
24 #  AL_FORMAT_MONO16   (16-bit mono)
25 #  AL_FORMAT_STEREO16 (16-bit stereo)
26 #  AL_FORMAT_QUAD16   (16-bit 4-channel)
27 #  AL_FORMAT_51CHN16  (16-bit 5.1 output)
28 #  AL_FORMAT_61CHN16  (16-bit 6.1 output)
29 #  AL_FORMAT_71CHN16  (16-bit 7.1 output)
30 #format = AL_FORMAT_STEREO16
32 ## cf_level:
33 #  Sets the crossfeed level for stereo output. Valid values are:
34 #  0 - No crossfeed
35 #  1 - Low crossfeed
36 #  2 - Middle crossfeed
37 #  3 - High crossfeed (virtual speakers are closer to itself)
38 #  4 - Low easy crossfeed
39 #  5 - Middle easy crossfeed
40 #  6 - High easy crossfeed
41 #  Users of headphones may want to try various settings. Has no effect on non-
42 #  stereo modes.
43 #cf_level = 0
45 ## frequency:
46 #  Sets the output frequency.
47 #frequency = 44100
49 ## refresh:
50 #  Sets the buffer size, in frames. Note that the actual granularity may or may
51 #  not be less than this.
52 #refresh = 4096
54 ## sources:
55 #  Sets the maximum number of allocatable sources. Lower values may help for
56 #  systems with apps that try to play more sounds than the CPU can handle.
57 #sources = 256
59 ## stereodup:
60 #  Sets whether to duplicate stereo sounds on the rear and side speakers for 4+
61 #  channel output. This can make stereo sources substantially louder than mono
62 #  or even 4+ channel sources, but provides a "fuller" playback quality. True,
63 #  yes, on, and non-0 values will duplicate stereo sources. 0 and anything else
64 #  will cause stereo sounds to only play out the front speakers.
65 #stereodup = false
67 ## drivers:
68 #  Sets the backend driver list order, comma-seperated. Unknown backends and
69 #  duplicated names are ignored, and unlisted backends won't be considered for
70 #  use. An empty list means the default.
71 #drivers = alsa,oss,solaris,dsound,winmm,port,pulse,wave
73 ## excludefx:
74 #  Sets which effects to exclude, preventing apps from using them. This can
75 #  help for apps that try to use effects which are too CPU intensive for the
76 #  system to handle. Available effects are: eaxreverb,reverb,echo
77 #excludefx =
79 ## slots:
80 #  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
81 #  can use a non-negligible amount of CPU time if an effect is set on it even
82 #  if no sources are feeding it, so this may help when apps use more than the
83 #  system can handle.
84 #slots = 4
86 ## sends:
87 #  Sets the maximum number of auxiliary sends per source. The total number of
88 #  sends possible is defined at compile time and thus can not be increased
89 #  beyond the default (2).
90 #sends = 2
92 ## layout_STEREO:
93 #  Sets the speaker layout when using stereo output. Values are specified in
94 #  degrees, where 0 is straight in front, negative goes left, and positive goes
95 #  right. The values must define a circular pattern, starting with the back-
96 #  left at the most negative, around the front to back-center. Unspecified
97 #  speakers will remain at their default position. Available speakers are
98 #  front-left(fl) and front-right(fr).
99 #layout_STEREO = fl=-90, fr=90
101 ## laytout_QUAD:
102 #  Sets the speaker layout when using quadriphonic output. Available speakers
103 #  are back-left(bl), front-left(fl), front-right(fr), and back-right(br).
104 #layout_QUAD = bl=-135, fl=-45, fr=45, br=135
106 ## layout_51CHN:
107 #  Sets the speaker layout when using 5.1 output. Available speakers are back-
108 #  left(bl), front-left(fl), front-center(fc), front-right(fr), and back-
109 #  right(br).
110 #layout_51CHN = bl=-110, fl=-30, fc=0, fr=30, br=110
112 ## layout_61CHN:
113 #  Sets the speaker layout when using 6.1 output. Available speakers are side-
114 #  left(sl), front-left(fl), front-center(fc), front-right(fr), side-right(sr),
115 #  and back-center(bc).
116 #layout_61CHN = sl=-90, fl=-30, fc=0, fr=30, sr=90, bc=180
118 ## layout_71CHN:
119 #  Sets the speaker layout when using 7.1 output. Available speakers are back-
120 #  left(bl), side-left(sl), front-left(fl), front-center(fc), front-right(fr),
121 #  side-right(sr), and back-right(br).
122 #layout_71CHN = bl=-150, sl=-90, fl=-30, fc=0, fr=30, sr=90, br=150
125 ## ALSA backend stuff
127 [alsa]
129 ## device:
130 #  Sets the device name for the default playback device.
131 #device = default
133 ## periods:
134 #  Sets the number of update buffers for playback. A value of 0 means auto-
135 #  select.
136 #periods = 0
138 ## capture:
139 #  Sets the device name for the default capture device.
140 #capture = default
142 ## mmap:
143 #  Sets whether to try using mmap mode (helps reduce latencies and CPU
144 #  consumption). If mmap isn't available, it will automatically fall back to
145 #  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
146 #  and anything else will force mmap off.
147 #mmap = true
150 ## OSS backend stuff
152 [oss]
154 ## device:
155 #  Sets the device name for OSS output.
156 #device = /dev/dsp
158 ## periods:
159 #  Sets the number of update buffers.
160 #periods = 4
162 ## capture:
163 #  Sets the device name for OSS capture.
164 #capture = /dev/dsp
167 ## Solaris backend stuff
169 [solaris]
171 ## device:
172 #  Sets the device name for Solaris output.
173 #device = /dev/audio
175 ## DirectSound backend stuff
176 [dsound]
178 ## periods:
179 #  Sets the number of updates for the output buffer.
180 #periods = 4
183 ## Windows Multimedia backend stuff
185 [winmm]
188 ## PortAudio backend stuff
190 [port]
192 ## device:
193 #  Sets the device index for output. Negative values will use the default as
194 #  given by PortAudio itself.
195 #device = -1
197 ## periods:
198 #  Sets the number of update buffers.
199 #periods = 4
202 ## PulseAudio backend stuff
204 [pulse]
207 ## Wave File Writer stuff
209 [wave]
211 ## file:
212 #  Sets the filename of the wave file to write to. An empty name prevents the
213 #  backend from opening, even when explicitly requested.
214 #  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
215 #file =