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