]> code.delx.au - pulseaudio/blob - src/daemon/default.pa.in
merge 'lennart' branch back into trunk.
[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 .nofail
20
21 ### Load something into the sample cache
22 #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
23 load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
24 #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
25 #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
26
27 .fail
28
29 ### Load audio drivers statically (it's probably better to not load
30 ### these drivers manually, but instead use module-hal-detect --
31 ### see below -- for doing this automatically)
32 #load-module module-alsa-sink
33 #load-module module-alsa-source device=hw:1,0
34 #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
35 #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
36 #load-module module-null-sink
37 #load-module module-pipe-sink
38
39 ### Automatically load driver modules depending on the hardware available
40 .ifexists @PA_DLSEARCHPATH@/module-hal-detect@PA_SOEXT@
41 load-module module-hal-detect
42 .else
43 ### Alternatively use the static hardware detection module (for systems that
44 ### lack HAL support)
45 load-module module-detect
46 .endif
47
48 ### Load several protocols
49 load-module module-esound-protocol-unix
50 load-module module-native-protocol-unix
51
52 ### Network access (may be configured with paprefs, so leave this commented
53 ### here if you plan to use paprefs)
54 #load-module module-esound-protocol-tcp
55 #load-module module-native-protocol-tcp
56 #load-module module-zeroconf-publish
57
58 ### Load the RTP reciever module (also configured via paprefs, see above)
59 #load-module module-rtp-recv
60
61 ### Load the RTP sender module (also configured via paprefs, see above)
62 #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
63 #load-module module-rtp-send source=rtp.monitor
64
65 ### Automatically restore the volume of playback streams
66 load-module module-volume-restore
67
68 ### Automatically restore the default sink/source when changed by the user during runtime
69 load-module module-default-device-restore
70
71 ### Automatically move streams to the default sink if the sink they are
72 ### connected to dies, similar for sources
73 load-module module-rescue-streams
74
75 ### Automatically suspend sinks/sources that become idle for too long
76 load-module module-suspend-on-idle
77
78 ### Load X11 bell module
79 #load-module module-x11-bell sample=x11-bell
80
81 ### Publish connection data in the X11 root window
82 .ifexists @PA_DLSEARCHPATH@/module-x11-publish@PA_SOEXT@
83 load-module module-x11-publish
84 .endif
85
86 ### Register ourselves in the X11 session manager
87 # Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
88 # Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
89 # load-module module-x11-xsmp
90
91 ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
92 ### Please keep in mind that the modules configured by paprefs might conflict with manually
93 ### loaded modules.
94 .ifexists @PA_DLSEARCHPATH@/module-gconf@PA_SOEXT@
95 load-module module-gconf
96 .endif
97
98 ### Make some devices default
99 #set-default-sink output
100 #set-default-source input