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