• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!@PA_BINARY@ -nF
2#
3# This file is part of PulseAudio.
4#
5# PulseAudio is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# PulseAudio is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
17
18# This startup script is used only if PulseAudio is started in system
19# mode.
20changequote(`[', `]')dnl Set up m4 quoting
21
22### Automatically restore the volume of streams and devices
23load-module module-device-restore
24load-module module-stream-restore
25load-module module-card-restore
26
27### Automatically load driver modules depending on the hardware available
28ifelse(@HAVE_UDEV@, 1, [dnl
29.ifexists module-udev-detect@PA_SOEXT@
30load-module module-udev-detect
31.else
32], @HAVE_COREAUDIO@, 1, [dnl
33.ifexists module-coreaudio-detect@PA_SOEXT@
34load-module module-coreaudio-detect
35.else
36], [dnl
37.ifexists module-detect@PA_SOEXT@
38])dnl
39### Use the static hardware detection module (for systems that lack udev/hal support)
40load-module module-detect
41.endif
42ifelse(@OS_IS_FREEBSD@, 1, [dnl
43### FreeBSD devd is used in addition to static detection (only handles hotplug)
44.ifexists module-devd-detect@PA_SOEXT@
45load-module module-devd-detect
46.endif
47])dnl
48
49### Load several protocols
50.ifexists module-esound-protocol-unix@PA_SOEXT@
51load-module module-esound-protocol-unix
52.endif
53load-module module-native-protocol-unix
54
55### Automatically restore the default sink/source when changed by the user
56### during runtime
57### NOTE: This should be loaded as early as possible so that subsequent modules
58### that look up the default sink/source get the right value
59load-module module-default-device-restore
60
61### Make sure we always have a sink around, even if it is a null sink.
62load-module module-always-sink
63
64### Automatically suspend sinks/sources that become idle for too long
65load-module module-suspend-on-idle
66
67### Enable positioned event sounds
68load-module module-position-event-sounds
69
70### Allow including a system.pa.d directory, which if present, can be used
71### for additional configuration snippets.
72### Note that those snippet files must have a .pa file extension, not .conf
73.nofail
74.include @PA_DEFAULT_CONFIG_DIR_UNQUOTED@/system.pa.d
75