3
# This file is part of PulseAudio.
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.
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.
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/>.
18
# This startup script is used only if PulseAudio is started per-user
19
# (i.e. not in system mode)
20
changequote(`[', `]')dnl Set up m4 quoting
24
### Load something into the sample cache
25
ifelse(@OS_IS_WIN32@, 1, [dnl
26
load-sample x11-bell %WINDIR%\Media\ding.wav
27
load-sample-dir-lazy %WINDIR%\Media\*.wav
29
#load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
30
#load-sample-lazy pulse-hotplug /usr/share/sounds/freedesktop/stereo/device-added.oga
31
#load-sample-lazy pulse-coldplug /usr/share/sounds/freedesktop/stereo/device-added.oga
32
#load-sample-lazy pulse-access /usr/share/sounds/freedesktop/stereo/message.oga
37
### Automatically restore the volume of streams and devices
38
load-module module-device-restore
39
load-module module-stream-restore
40
load-module module-card-restore
42
### Automatically augment property information from .desktop files
43
### stored in /usr/share/application
44
load-module module-augment-properties
46
### Should be after module-*-restore but before module-*-detect
47
load-module module-switch-on-port-available
49
### Load audio drivers statically
50
### (it's probably better to not load these drivers manually, but instead
51
### use module-udev-detect -- see below -- for doing this automatically)
52
ifelse(@HAVE_ALSA@, 1, [dnl
53
#load-module module-alsa-sink
54
#load-module module-alsa-source device=hw:1,0
56
ifelse(@HAVE_OSS_OUTPUT@, 1, [dnl
57
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
58
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
60
ifelse(@HAVE_WAVEOUT@, 1, [dnl
61
load-module module-waveout sink_name=output source_name=input
63
#load-module module-null-sink
64
ifelse(@HAVE_MKFIFO@, 1, [dnl
65
#load-module module-pipe-sink
68
### Automatically load driver modules depending on the hardware available
69
ifelse(@HAVE_UDEV@, 1, [dnl
70
.ifexists module-udev-detect@PA_SOEXT@
71
load-module module-udev-detect
74
.ifexists module-detect@PA_SOEXT@
76
### Use the static hardware detection module (for systems that lack udev support)
77
load-module module-detect
80
### Automatically connect sink and source if JACK server is present
81
.ifexists module-jackdbus-detect@PA_SOEXT@
83
load-module module-jackdbus-detect channels=2
87
ifelse(@HAVE_BLUEZ@, 1, [dnl
88
### Automatically load driver modules for Bluetooth hardware
89
.ifexists module-bluetooth-policy@PA_SOEXT@
90
load-module module-bluetooth-policy
93
.ifexists module-bluetooth-discover@PA_SOEXT@
94
load-module module-bluetooth-discover
98
ifelse(@HAVE_AF_UNIX@, 1, [dnl
99
### Load several protocols
100
.ifexists module-esound-protocol-unix@PA_SOEXT@
101
load-module module-esound-protocol-unix
103
load-module module-native-protocol-unix
106
### Network access (may be configured with paprefs, so leave this commented
107
### here if you plan to use paprefs)
108
#load-module module-esound-protocol-tcp
109
#load-module module-native-protocol-tcp
110
ifelse(@HAVE_AVAHI@, 1, [dnl
111
#load-module module-zeroconf-publish
114
ifelse(@OS_IS_WIN32@, 0, [dnl
115
### Load the RTP receiver module (also configured via paprefs, see above)
116
#load-module module-rtp-recv
118
### Load the RTP sender module (also configured via paprefs, see above)
119
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
120
#load-module module-rtp-send source=rtp.monitor
122
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
123
### Please keep in mind that the modules configured by paprefs might conflict with manually
125
.ifexists module-gconf@PA_SOEXT@
127
load-module module-gconf
131
### Automatically restore the default sink/source when changed by the user
133
### NOTE: This should be loaded as early as possible so that subsequent modules
134
### that look up the default sink/source get the right value
135
load-module module-default-device-restore
137
### Automatically move streams to the default sink if the sink they are
138
### connected to dies, similar for sources
139
load-module module-rescue-streams
141
### Make sure we always have a sink around, even if it is a null sink.
142
load-module module-always-sink
144
### Honour intended role device property
145
load-module module-intended-roles
147
### Automatically suspend sinks/sources that become idle for too long
148
load-module module-suspend-on-idle
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@
153
load-module module-console-kit
155
.ifexists module-systemd-login@PA_SOEXT@
156
load-module module-systemd-login
159
### Enable positioned event sounds
160
load-module module-position-event-sounds
162
### Cork music/video streams when a phone stream is active
163
load-module module-role-cork
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.
169
load-module module-filter-heuristics
170
load-module module-filter-apply
173
ifelse(@HAVE_X11@, 1, [dnl
174
# X11 modules should not be started from default.pa so that one daemon
175
# can be shared by multiple sessions.
177
### Load X11 bell module
178
#load-module module-x11-bell sample=x11-bell
180
### Register ourselves in the X11 session manager
181
#load-module module-x11-xsmp
183
### Publish connection data in the X11 root window
184
#.ifexists module-x11-publish@PA_SOEXT@
186
#load-module module-x11-publish
191
### Make some devices default
192
#set-default-sink output
193
#set-default-source input