]> code.delx.au - pulseaudio/blob - src/daemon/default.pa.in
build-sys: Process configuration files with m4
[pulseaudio] / src / daemon / default.pa.in
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, write to the Free Software Foundation,
17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18
19 # This startup script is used only if PulseAudio is started per-user
20 # (i.e. not in system mode)
21 changequote(`[', `]')dnl Set up m4 quoting
22
23 .nofail
24
25 ### Load something into the sample cache
26 ifelse(@OS_IS_WIN32@, 1, [dnl
27 load-sample x11-bell %WINDIR%\Media\ding.wav
28 load-sample-dir-lazy %WINDIR%\Media\*.wav
29 ], [dnl
30 #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
31 #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
32 #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
33 #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
34 ])dnl
35
36 .fail
37
38 ### Automatically restore the volume of streams and devices
39 load-module module-device-restore
40 load-module module-stream-restore
41 load-module module-card-restore
42
43 ### Automatically augment property information from .desktop files
44 ### stored in /usr/share/application
45 load-module module-augment-properties
46
47 ### Load audio drivers statically (it's probably better to not load
48 ### these drivers manually, but instead use module-udev-detect --
49 ### see below -- for doing this automatically)
50 #load-module module-alsa-sink
51 #load-module module-alsa-source device=hw:1,0
52 #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
53 #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
54 ifelse(@HAVE_WAVEOUT@, 1, [dnl
55 load-module module-waveout sink_name=output source_name=input
56 ])dnl
57 #load-module module-null-sink
58 #load-module module-pipe-sink
59
60 ### Automatically load driver modules depending on the hardware available
61 .ifexists module-udev-detect@PA_SOEXT@
62 load-module module-udev-detect
63 .else
64 ### Alternatively use the static hardware detection module (for systems that
65 ### lack udev support)
66 load-module module-detect
67 .endif
68
69 ### Automatically load driver modules for Bluetooth hardware
70 .ifexists module-bluetooth-discover@PA_SOEXT@
71 load-module module-bluetooth-discover
72 .endif
73
74 ### Load several protocols
75 .ifexists module-esound-protocol-unix@PA_SOEXT@
76 load-module module-esound-protocol-unix
77 .endif
78 .ifexists module-dbus-protocol@PA_SOEXT@
79 load-module module-dbus-protocol
80 .endif
81 load-module module-native-protocol-unix
82
83 ### Network access (may be configured with paprefs, so leave this commented
84 ### here if you plan to use paprefs)
85 #load-module module-esound-protocol-tcp
86 #load-module module-native-protocol-tcp
87 #load-module module-zeroconf-publish
88
89 ifelse(@OS_IS_WIN32@, 0, [dnl
90 ### Load the RTP receiver module (also configured via paprefs, see above)
91 #load-module module-rtp-recv
92
93 ### Load the RTP sender module (also configured via paprefs, see above)
94 #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
95 #load-module module-rtp-send source=rtp.monitor
96
97 ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
98 ### Please keep in mind that the modules configured by paprefs might conflict with manually
99 ### loaded modules.
100 .ifexists module-gconf@PA_SOEXT@
101 .nofail
102 load-module module-gconf
103 .fail
104 .endif
105
106 ### Automatically restore the default sink/source when changed by the user during runtime
107 load-module module-default-device-restore
108
109 ### Automatically move streams to the default sink if the sink they are
110 ### connected to dies, similar for sources
111 load-module module-rescue-streams
112
113 ### Make sure we always have a sink around, even if it is a null sink.
114 load-module module-always-sink
115
116 ### Honour intended role device property
117 load-module module-intended-roles
118
119 ### Automatically suspend sinks/sources that become idle for too long
120 load-module module-suspend-on-idle
121
122 ### If autoexit on idle is enabled we want to make sure we only quit
123 ### when no local session needs us anymore.
124 .ifexists module-console-kit@PA_SOEXT@
125 load-module module-console-kit
126 .endif
127
128 ### Enable positioned event sounds
129 load-module module-position-event-sounds
130
131 ### Cork music streams when a phone stream is active
132 load-module module-cork-music-on-phone
133
134 # X11 modules should not be started from default.pa so that one daemon
135 # can be shared by multiple sessions.
136
137 ### Load X11 bell module
138 #load-module module-x11-bell sample=bell-windowing-system
139
140 ### Register ourselves in the X11 session manager
141 #load-module module-x11-xsmp
142
143 ### Publish connection data in the X11 root window
144 #.ifexists module-x11-publish@PA_SOEXT@
145 #.nofail
146 #load-module module-x11-publish
147 #.fail
148 #.endif
149 ])dnl
150
151 ### Make some devices default
152 #set-default-sink output
153 #set-default-source input