Ticket #169: default.pa

File default.pa, 3.8 kB (added by Rudd-O, 4 years ago)
Line 
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, 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
23load-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 /usr/lib/pulse-0.9/modules//module-hal-detect.so
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 socket="/tmp/.esd/socket"
50load-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)
62load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=48000 description="RTP Multicast Sink"
63load-module module-rtp-send source=rtp.monitor
64#load-module module-zeroconf-discover
65
66### Automatically restore the volume of playback streams
67load-module module-volume-restore
68
69### Automatically restore the default sink/source when changed by the user during runtime
70#load-module module-default-device-restore
71
72### Automatically move streams to the default sink if the sink they are
73### connected to dies, similar for sources
74load-module module-rescue-streams
75
76### Automatically suspend sinks/sources that become idle for too long
77#load-module module-suspend-on-idle
78
79### Load X11 bell module
80#load-module module-x11-bell sample=x11-bell
81
82### Publish connection data in the X11 root window
83.ifexists /usr/lib/pulse-0.9/modules//module-x11-publish.so
84load-module module-x11-publish
85.endif
86
87### Register ourselves in the X11 session manager
88# Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
89# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
90# load-module module-x11-xsmp
91
92### Load additional modules from GConf settings. This can be configured with the paprefs tool.
93### Please keep in mind that the modules configured by paprefs might conflict with manually
94### loaded modules.
95.ifexists /usr/lib/pulse-0.9/modules//module-gconf.so
96load-module module-gconf
97.endif
98
99### Make some devices default
100#set-default-sink output
101#set-default-source input