Ticket #589: default.pa

File default.pa, 4.8 KB (added by martt, 3 years ago)

Pulse default.pa file.

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