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 70ifelse(@OS_IS_FREEBSD@, 1, [dnl 71### FreeBSD devd is used in addition to static detection (only handles hotplug) 72.ifexists module-devd-detect@PA_SOEXT@ 73load-module module-devd-detect 74.endif 75])dnl 76 77### Automatically connect sink and source if JACK server is present 78.ifexists module-jackdbus-detect@PA_SOEXT@ 79.nofail 80load-module module-jackdbus-detect channels=2 81.fail 82.endif 83 84ifelse(@HAVE_BLUEZ@, 1, [dnl 85### Automatically load driver modules for Bluetooth hardware 86.ifexists module-bluetooth-policy@PA_SOEXT@ 87load-module module-bluetooth-policy 88.endif 89 90.ifexists module-bluetooth-discover@PA_SOEXT@ 91load-module module-bluetooth-discover 92.endif 93])dnl 94 95ifelse(@HAVE_AF_UNIX@, 1, [dnl 96### Load several protocols 97.ifexists module-esound-protocol-unix@PA_SOEXT@ 98load-module module-esound-protocol-unix 99.endif 100load-module module-native-protocol-unix 101])dnl 102 103### Network access (may be configured with paprefs, so leave this commented 104### here if you plan to use paprefs) 105#load-module module-esound-protocol-tcp 106#load-module module-native-protocol-tcp 107ifelse(@HAVE_AVAHI@, 1, [dnl 108#load-module module-zeroconf-publish 109])dnl 110 111ifelse(@OS_IS_WIN32@, 0, [dnl 112### Load the RTP receiver module (also configured via paprefs, see above) 113#load-module module-rtp-recv 114 115### Load the RTP sender module (also configured via paprefs, see above) 116#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'" 117#load-module module-rtp-send source=rtp.monitor 118 119ifelse(@HAVE_GSETTINGS@, 1, [dnl 120### Load additional modules from GSettings. This can be configured with the paprefs tool. 121### Please keep in mind that the modules configured by paprefs might conflict with manually 122### loaded modules. 123.ifexists module-gsettings@PA_SOEXT@ 124.nofail 125load-module module-gsettings 126.fail 127.endif 128])dnl 129 130### Automatically restore the default sink/source when changed by the user 131### during runtime 132### NOTE: This should be loaded as early as possible so that subsequent modules 133### that look up the default sink/source get the right value 134load-module module-default-device-restore 135 136### Make sure we always have a sink around, even if it is a null sink. 137load-module module-always-sink 138 139### Honour intended role device property 140load-module module-intended-roles 141 142### Automatically suspend sinks/sources that become idle for too long 143load-module module-suspend-on-idle 144 145### If autoexit on idle is enabled we want to make sure we only quit 146### when no local session needs us anymore. 147.ifexists module-console-kit@PA_SOEXT@ 148load-module module-console-kit 149.endif 150.ifexists module-systemd-login@PA_SOEXT@ 151load-module module-systemd-login 152.endif 153 154### Enable positioned event sounds 155load-module module-position-event-sounds 156 157### Cork music/video streams when a phone stream is active 158load-module module-role-cork 159 160### Modules to allow autoloading of filters (such as echo cancellation) 161### on demand. module-filter-heuristics tries to determine what filters 162### make sense, and module-filter-apply does the heavy-lifting of 163### loading modules and rerouting streams. 164load-module module-filter-heuristics 165load-module module-filter-apply 166])dnl 167 168### Make some devices default 169#set-default-sink output 170#set-default-source input 171 172### Allow including a default.pa.d directory, which if present, can be used 173### for additional configuration snippets. 174### Note that those snippet files must have a .pa file extension, not .conf 175.nofail 176.include @PA_DEFAULT_CONFIG_DIR_UNQUOTED@/default.pa.d 177