2007-10-28 19:13:50 +00:00
|
|
|
#!@PA_BINARY@ -nF
|
2004-07-16 20:02:44 +00:00
|
|
|
#
|
2006-06-19 21:53:48 +00:00
|
|
|
# This file is part of PulseAudio.
|
2004-07-16 20:02:44 +00:00
|
|
|
#
|
2006-06-19 21:53:48 +00:00
|
|
|
# PulseAudio is free software; you can redistribute it and/or modify it
|
2004-11-14 14:58:54 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
2004-07-16 20:02:44 +00:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
2006-06-19 21:53:48 +00:00
|
|
|
# PulseAudio is distributed in the hope that it will be useful, but
|
2004-07-16 20:02:44 +00:00
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
# General Public License for more details.
|
|
|
|
|
#
|
2004-11-14 14:58:54 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
2014-11-26 14:14:51 +01:00
|
|
|
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
2004-07-16 20:02:44 +00:00
|
|
|
|
2008-07-30 16:59:30 +02:00
|
|
|
# This startup script is used only if PulseAudio is started per-user
|
|
|
|
|
# (i.e. not in system mode)
|
2011-06-29 15:16:10 +02:00
|
|
|
changequote(`[', `]')dnl Set up m4 quoting
|
2008-07-30 16:59:30 +02:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
.nofail
|
|
|
|
|
|
|
|
|
|
### Load something into the sample cache
|
2011-06-29 15:16:10 +02:00
|
|
|
ifelse(@OS_IS_WIN32@, 1, [dnl
|
|
|
|
|
load-sample x11-bell %WINDIR%\Media\ding.wav
|
|
|
|
|
load-sample-dir-lazy %WINDIR%\Media\*.wav
|
|
|
|
|
], [dnl
|
2014-04-26 12:16:50 +03:00
|
|
|
#load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
|
|
|
|
|
#load-sample-lazy pulse-hotplug /usr/share/sounds/freedesktop/stereo/device-added.oga
|
|
|
|
|
#load-sample-lazy pulse-coldplug /usr/share/sounds/freedesktop/stereo/device-added.oga
|
|
|
|
|
#load-sample-lazy pulse-access /usr/share/sounds/freedesktop/stereo/message.oga
|
2011-06-29 15:16:10 +02:00
|
|
|
])dnl
|
2004-07-16 20:02:44 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
.fail
|
|
|
|
|
|
2008-12-17 20:30:01 +01:00
|
|
|
### Automatically restore the volume of streams and devices
|
|
|
|
|
load-module module-device-restore
|
|
|
|
|
load-module module-stream-restore
|
2009-01-21 02:50:29 +01:00
|
|
|
load-module module-card-restore
|
2008-12-17 20:30:01 +01:00
|
|
|
|
2009-02-05 04:14:30 +01:00
|
|
|
### Automatically augment property information from .desktop files
|
|
|
|
|
### stored in /usr/share/application
|
|
|
|
|
load-module module-augment-properties
|
|
|
|
|
|
2013-04-16 13:09:38 +02:00
|
|
|
### Should be after module-*-restore but before module-*-detect
|
|
|
|
|
load-module module-switch-on-port-available
|
|
|
|
|
|
2011-06-29 15:16:11 +02:00
|
|
|
### Load audio drivers statically
|
|
|
|
|
### (it's probably better to not load these drivers manually, but instead
|
|
|
|
|
### use module-udev-detect -- see below -- for doing this automatically)
|
|
|
|
|
ifelse(@HAVE_ALSA@, 1, [dnl
|
2004-09-14 23:08:39 +00:00
|
|
|
#load-module module-alsa-sink
|
2006-09-07 13:29:59 +00:00
|
|
|
#load-module module-alsa-source device=hw:1,0
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
|
|
|
|
ifelse(@HAVE_OSS_OUTPUT@, 1, [dnl
|
2006-05-17 15:38:58 +00:00
|
|
|
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
|
2004-09-14 23:08:39 +00:00
|
|
|
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
2011-06-29 15:16:10 +02:00
|
|
|
ifelse(@HAVE_WAVEOUT@, 1, [dnl
|
|
|
|
|
load-module module-waveout sink_name=output source_name=input
|
|
|
|
|
])dnl
|
2006-05-17 15:38:58 +00:00
|
|
|
#load-module module-null-sink
|
2011-06-29 15:16:11 +02:00
|
|
|
ifelse(@HAVE_MKFIFO@, 1, [dnl
|
2004-09-14 23:08:39 +00:00
|
|
|
#load-module module-pipe-sink
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
2004-07-14 21:52:41 +00:00
|
|
|
|
2006-05-17 15:38:58 +00:00
|
|
|
### Automatically load driver modules depending on the hardware available
|
2011-08-05 15:33:48 +02:00
|
|
|
ifelse(@HAVE_UDEV@, 1, [dnl
|
2009-06-06 03:26:55 +02:00
|
|
|
.ifexists module-udev-detect@PA_SOEXT@
|
|
|
|
|
load-module module-udev-detect
|
2007-10-28 19:13:50 +00:00
|
|
|
.else
|
2011-06-29 15:16:11 +02:00
|
|
|
], [dnl
|
|
|
|
|
.ifexists module-detect@PA_SOEXT@
|
|
|
|
|
])dnl
|
2012-05-15 16:06:42 +02:00
|
|
|
### Use the static hardware detection module (for systems that lack udev support)
|
2007-10-28 19:13:50 +00:00
|
|
|
load-module module-detect
|
|
|
|
|
.endif
|
2004-08-05 19:53:57 +00:00
|
|
|
|
2011-08-15 14:05:49 +02:00
|
|
|
### Automatically connect sink and source if JACK server is present
|
|
|
|
|
.ifexists module-jackdbus-detect@PA_SOEXT@
|
2011-10-20 14:11:53 +01:00
|
|
|
.nofail
|
2013-03-01 13:01:33 +01:00
|
|
|
load-module module-jackdbus-detect channels=2
|
2011-10-20 14:11:53 +01:00
|
|
|
.fail
|
2011-08-15 14:05:49 +02:00
|
|
|
.endif
|
|
|
|
|
|
2011-06-29 15:16:11 +02:00
|
|
|
ifelse(@HAVE_BLUEZ@, 1, [dnl
|
2008-09-11 01:40:40 +03:00
|
|
|
### Automatically load driver modules for Bluetooth hardware
|
2012-11-26 18:32:09 +01:00
|
|
|
.ifexists module-bluetooth-policy@PA_SOEXT@
|
|
|
|
|
load-module module-bluetooth-policy
|
|
|
|
|
.endif
|
|
|
|
|
|
2009-04-01 16:15:27 +02:00
|
|
|
.ifexists module-bluetooth-discover@PA_SOEXT@
|
2009-03-23 19:16:00 +01:00
|
|
|
load-module module-bluetooth-discover
|
2009-04-01 16:15:27 +02:00
|
|
|
.endif
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
2008-09-11 01:40:40 +03:00
|
|
|
|
2011-06-29 15:16:11 +02:00
|
|
|
ifelse(@HAVE_AF_UNIX@, 1, [dnl
|
2006-05-17 15:38:58 +00:00
|
|
|
### Load several protocols
|
2008-03-27 21:04:25 +00:00
|
|
|
.ifexists module-esound-protocol-unix@PA_SOEXT@
|
2004-11-21 21:31:28 +00:00
|
|
|
load-module module-esound-protocol-unix
|
2008-03-27 21:04:25 +00:00
|
|
|
.endif
|
2011-06-29 15:16:11 +02:00
|
|
|
load-module module-native-protocol-unix
|
|
|
|
|
])dnl
|
2006-07-27 18:35:17 +00:00
|
|
|
|
2006-08-25 12:12:13 +00:00
|
|
|
### Network access (may be configured with paprefs, so leave this commented
|
|
|
|
|
### here if you plan to use paprefs)
|
2006-07-27 18:35:17 +00:00
|
|
|
#load-module module-esound-protocol-tcp
|
2006-05-17 15:38:58 +00:00
|
|
|
#load-module module-native-protocol-tcp
|
2011-06-29 15:16:11 +02:00
|
|
|
ifelse(@HAVE_AVAHI@, 1, [dnl
|
2006-07-27 18:35:17 +00:00
|
|
|
#load-module module-zeroconf-publish
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
2006-05-17 15:38:58 +00:00
|
|
|
|
2011-06-29 15:16:10 +02:00
|
|
|
ifelse(@OS_IS_WIN32@, 0, [dnl
|
|
|
|
|
### Load the RTP receiver module (also configured via paprefs, see above)
|
2006-05-17 15:38:58 +00:00
|
|
|
#load-module module-rtp-recv
|
2004-07-14 21:52:41 +00:00
|
|
|
|
2006-08-25 12:12:13 +00:00
|
|
|
### Load the RTP sender module (also configured via paprefs, see above)
|
2011-08-15 21:38:45 +02:00
|
|
|
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
|
2006-08-25 12:12:13 +00:00
|
|
|
#load-module module-rtp-send source=rtp.monitor
|
2004-07-16 17:03:11 +00:00
|
|
|
|
2008-10-19 13:39:50 +01:00
|
|
|
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
|
|
|
|
|
### Please keep in mind that the modules configured by paprefs might conflict with manually
|
|
|
|
|
### loaded modules.
|
|
|
|
|
.ifexists module-gconf@PA_SOEXT@
|
|
|
|
|
.nofail
|
|
|
|
|
load-module module-gconf
|
|
|
|
|
.fail
|
|
|
|
|
.endif
|
|
|
|
|
|
2011-09-14 14:55:07 +02:00
|
|
|
### Automatically restore the default sink/source when changed by the user
|
|
|
|
|
### during runtime
|
|
|
|
|
### NOTE: This should be loaded as early as possible so that subsequent modules
|
|
|
|
|
### that look up the default sink/source get the right value
|
2007-10-28 19:13:50 +00:00
|
|
|
load-module module-default-device-restore
|
|
|
|
|
|
2006-08-25 12:12:13 +00:00
|
|
|
### Automatically move streams to the default sink if the sink they are
|
|
|
|
|
### connected to dies, similar for sources
|
2006-08-13 17:35:46 +00:00
|
|
|
load-module module-rescue-streams
|
|
|
|
|
|
2008-06-11 19:45:57 +00:00
|
|
|
### Make sure we always have a sink around, even if it is a null sink.
|
|
|
|
|
load-module module-always-sink
|
|
|
|
|
|
2009-06-22 22:44:29 +02:00
|
|
|
### Honour intended role device property
|
|
|
|
|
load-module module-intended-roles
|
|
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
### Automatically suspend sinks/sources that become idle for too long
|
|
|
|
|
load-module module-suspend-on-idle
|
2004-08-05 19:53:57 +00:00
|
|
|
|
2008-06-11 17:43:08 +00:00
|
|
|
### If autoexit on idle is enabled we want to make sure we only quit
|
|
|
|
|
### when no local session needs us anymore.
|
2011-01-11 10:09:42 +00:00
|
|
|
.ifexists module-console-kit@PA_SOEXT@
|
2008-06-11 17:43:08 +00:00
|
|
|
load-module module-console-kit
|
2011-01-11 10:09:42 +00:00
|
|
|
.endif
|
2012-03-17 01:52:41 +01:00
|
|
|
.ifexists module-systemd-login@PA_SOEXT@
|
|
|
|
|
load-module module-systemd-login
|
|
|
|
|
.endif
|
2008-06-11 17:43:08 +00:00
|
|
|
|
|
|
|
|
### Enable positioned event sounds
|
|
|
|
|
load-module module-position-event-sounds
|
2004-11-21 21:31:28 +00:00
|
|
|
|
2011-10-24 22:55:45 +02:00
|
|
|
### Cork music/video streams when a phone stream is active
|
|
|
|
|
load-module module-role-cork
|
2011-08-15 16:37:55 +05:30
|
|
|
|
|
|
|
|
### Modules to allow autoloading of filters (such as echo cancellation)
|
|
|
|
|
### on demand. module-filter-heuristics tries to determine what filters
|
|
|
|
|
### make sense, and module-filter-apply does the heavy-lifting of
|
|
|
|
|
### loading modules and rerouting streams.
|
|
|
|
|
load-module module-filter-heuristics
|
|
|
|
|
load-module module-filter-apply
|
2011-06-29 15:16:11 +02:00
|
|
|
])dnl
|
2009-02-12 03:19:40 +01:00
|
|
|
|
2011-06-29 15:16:11 +02:00
|
|
|
ifelse(@HAVE_X11@, 1, [dnl
|
2008-07-22 19:45:18 +02:00
|
|
|
# X11 modules should not be started from default.pa so that one daemon
|
|
|
|
|
# can be shared by multiple sessions.
|
|
|
|
|
|
|
|
|
|
### Load X11 bell module
|
2014-04-26 12:16:50 +03:00
|
|
|
#load-module module-x11-bell sample=x11-bell
|
2008-07-22 19:45:18 +02:00
|
|
|
|
|
|
|
|
### Register ourselves in the X11 session manager
|
|
|
|
|
#load-module module-x11-xsmp
|
|
|
|
|
|
2008-03-27 23:48:14 +00:00
|
|
|
### Publish connection data in the X11 root window
|
2008-07-22 19:45:18 +02:00
|
|
|
#.ifexists module-x11-publish@PA_SOEXT@
|
|
|
|
|
#.nofail
|
|
|
|
|
#load-module module-x11-publish
|
|
|
|
|
#.fail
|
|
|
|
|
#.endif
|
2011-06-29 15:16:10 +02:00
|
|
|
])dnl
|
2008-03-27 23:48:14 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
### Make some devices default
|
|
|
|
|
#set-default-sink output
|
|
|
|
|
#set-default-source input
|