Ticket #326: default.pa

File default.pa, 4.3 KB (added by thomasa88, 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#### I do this by hand for the remaps
40# ### Automatically load driver modules depending on the hardware available
41# .ifexists module-hal-detect.so
42# load-module module-hal-detect
43# .else
44# ### Alternatively use the static hardware detection module (for systems that
45# ### lack HAL support)
46# load-module module-detect
47#.endif
48
49### Load several protocols
50.ifexists module-esound-protocol-unix.so
51load-module module-esound-protocol-unix
52.endif
53load-module module-native-protocol-unix
54
55### Network access (may be configured with paprefs, so leave this commented
56### here if you plan to use paprefs)
57#load-module module-esound-protocol-tcp
58#load-module module-native-protocol-tcp
59#load-module module-zeroconf-publish
60
61### Load the RTP reciever module (also configured via paprefs, see above)
62#load-module module-rtp-recv
63
64### Load the RTP sender module (also configured via paprefs, see above)
65#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
66#load-module module-rtp-send source=rtp.monitor
67
68### Automatically restore the volume of playback streams
69load-module module-volume-restore
70
71### Automatically restore the default sink/source when changed by the user during runtime
72load-module module-default-device-restore
73
74### Automatically move streams to the default sink if the sink they are
75### connected to dies, similar for sources
76load-module module-rescue-streams
77
78### Automatically suspend sinks/sources that become idle for too long
79load-module module-suspend-on-idle
80
81### Load X11 bell module
82#load-module module-x11-bell sample=x11-bell
83
84### Register ourselves in the X11 session manager
85# Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
86# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
87# load-module module-x11-xsmp
88
89### Load additional modules from GConf settings. This can be configured with the paprefs tool.
90### Please keep in mind that the modules configured by paprefs might conflict with manually
91### loaded modules.
92.ifexists module-gconf.so
93.nofail
94load-module module-gconf
95.fail
96.endif
97
98### Publish connection data in the X11 root window
99.ifexists module-x11-publish.so
100.nofail
101load-module module-x11-publish
102.fail
103.endif
104
105### Make some devices default
106set-default-sink speakers
107#set-default-source input
108
109load-module module-alsa-sink sink_name=sound_card device_id=0 channels=4 channel_map=front-left,front-right,rear-left,rear-right
110#load-module module-alsa-sink device=hw:0
111#load-module module-alsa-source device=hw:0
112
113load-module module-remap-sink sink_name=speakers master=sound_card channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
114
115load-module module-remap-sink sink_name=headphones master=sound_card channels=2 master_channel_map=rear-left,rear-right channel_map=front-left,front-right
116
117