• 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 per-user
19# (i.e. not in system mode)
20changequote(`[', `]')dnl Set up m4 quoting
21
22.fail
23
24### Automatically restore the volume of streams and devices
25load-module module-device-restore
26load-module module-stream-restore
27load-module module-card-restore
28
29### Automatically augment property information from .desktop files
30### stored in /usr/share/application
31load-module module-augment-properties
32
33### Should be after module-*-restore but before module-*-detect
34load-module module-switch-on-port-available
35
36### Load audio drivers statically
37### (it's probably better to not load these drivers manually, but instead
38### use module-udev-detect -- see below -- for doing this automatically)
39ifelse(@HAVE_ALSA@, 1, [dnl
40#load-module module-alsa-sink
41#load-module module-alsa-source device=hw:1,0
42])dnl
43ifelse(@HAVE_OSS_OUTPUT@, 1, [dnl
44#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
45#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
46])dnl
47ifelse(@HAVE_WAVEOUT@, 1, [dnl
48load-module module-waveout sink_name=output source_name=input
49])dnl
50#load-module module-null-sink
51ifelse(@HAVE_MKFIFO@, 1, [dnl
52#load-module module-pipe-sink
53])dnl
54
55### Automatically load driver modules depending on the hardware available
56ifelse(@HAVE_UDEV@, 1, [dnl
57.ifexists module-udev-detect@PA_SOEXT@
58load-module module-udev-detect
59.else
60], @HAVE_COREAUDIO@, 1, [dnl
61.ifexists module-coreaudio-detect@PA_SOEXT@
62load-module module-coreaudio-detect
63.else
64], [dnl
65.ifexists module-detect@PA_SOEXT@
66])dnl
67### Use the static hardware detection module (for systems that lack udev support)
68load-module module-detect
69.endif
70
71### Automatically connect sink and source if JACK server is present
72.ifexists module-jackdbus-detect@PA_SOEXT@
73.nofail
74load-module module-jackdbus-detect channels=2
75.fail
76.endif
77
78ifelse(@HAVE_BLUEZ@, 1, [dnl
79### Automatically load driver modules for Bluetooth hardware
80.ifexists module-bluetooth-policy@PA_SOEXT@
81load-module module-bluetooth-policy
82.endif
83
84.ifexists module-bluetooth-discover@PA_SOEXT@
85load-module module-bluetooth-discover
86.endif
87])dnl
88
89ifelse(@HAVE_AF_UNIX@, 1, [dnl
90### Load several protocols
91.ifexists module-esound-protocol-unix@PA_SOEXT@
92load-module module-esound-protocol-unix
93.endif
94load-module module-native-protocol-unix
95])dnl
96
97### Network access (may be configured with paprefs, so leave this commented
98### here if you plan to use paprefs)
99#load-module module-esound-protocol-tcp
100#load-module module-native-protocol-tcp
101ifelse(@HAVE_AVAHI@, 1, [dnl
102#load-module module-zeroconf-publish
103])dnl
104
105ifelse(@OS_IS_WIN32@, 0, [dnl
106### Load the RTP receiver module (also configured via paprefs, see above)
107#load-module module-rtp-recv
108
109### Load the RTP sender module (also configured via paprefs, see above)
110#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
111#load-module module-rtp-send source=rtp.monitor
112
113ifelse(@HAVE_GSETTINGS@, 1, [dnl
114### Load additional modules from GSettings. This can be configured with the paprefs tool.
115### Please keep in mind that the modules configured by paprefs might conflict with manually
116### loaded modules.
117.ifexists module-gsettings@PA_SOEXT@
118.nofail
119load-module module-gsettings
120.fail
121.endif
122])dnl
123
124ifelse(@HAVE_GCONF@, 1, [dnl
125### Load additional modules from GConf settings. This can be configured with the paprefs tool.
126### Please keep in mind that the modules configured by paprefs might conflict with manually
127### loaded modules.
128.ifexists module-gconf@PA_SOEXT@
129.nofail
130load-module module-gconf
131.fail
132.endif
133])dnl
134
135### Automatically restore the default sink/source when changed by the user
136### during runtime
137### NOTE: This should be loaded as early as possible so that subsequent modules
138### that look up the default sink/source get the right value
139load-module module-default-device-restore
140
141### Make sure we always have a sink around, even if it is a null sink.
142load-module module-always-sink
143
144### Honour intended role device property
145load-module module-intended-roles
146
147### Automatically suspend sinks/sources that become idle for too long
148load-module module-suspend-on-idle
149
150### If autoexit on idle is enabled we want to make sure we only quit
151### when no local session needs us anymore.
152.ifexists module-console-kit@PA_SOEXT@
153load-module module-console-kit
154.endif
155.ifexists module-systemd-login@PA_SOEXT@
156load-module module-systemd-login
157.endif
158
159### Enable positioned event sounds
160load-module module-position-event-sounds
161
162### Cork music/video streams when a phone stream is active
163load-module module-role-cork
164
165### Modules to allow autoloading of filters (such as echo cancellation)
166### on demand. module-filter-heuristics tries to determine what filters
167### make sense, and module-filter-apply does the heavy-lifting of
168### loading modules and rerouting streams.
169load-module module-filter-heuristics
170load-module module-filter-apply
171])dnl
172
173### Make some devices default
174#set-default-sink output
175#set-default-source input
176