meta-audio-4a-framework: pulseaudio: fix the default.pa file
[AGL/meta-agl-devel.git] / meta-audio-4a-framework / recipes-multimedia / pulseaudio / files / default.pa.4a
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, see <http://www.gnu.org/licenses/>.
17
18 # This startup script is used only if PulseAudio is started per-user
19 # (i.e. not in system mode)
20
21 .fail
22
23 ### Automatically augment property information from .desktop files
24 ### stored in /usr/share/application
25 load-module module-augment-properties
26
27 ### Load several protocols
28 .ifexists module-esound-protocol-unix.so
29 load-module module-esound-protocol-unix
30 .endif
31 load-module module-native-protocol-unix
32
33 ### Network access (may be configured with paprefs, so leave this commented
34 ### here if you plan to use paprefs)
35 #load-module module-esound-protocol-tcp
36 #load-module module-native-protocol-tcp
37
38 ### Load the RTP receiver module (also configured via paprefs, see above)
39 #load-module module-rtp-recv
40
41 ### Load the RTP sender module (also configured via paprefs, see above)
42 #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
43 #load-module module-rtp-send source=rtp.monitor
44
45 .ifexists module-4a-client.so
46 load-module module-null-sink sink_name=aaaa_null_sink sink_properties="device.description='4A Null Output'"
47 set-default-sink aaaa_null_sink
48 load-module module-4a-client
49 .else
50 load-module module-udev-detect
51 .endif
52
53 ### Automatically move streams to the default sink if the sink they are
54 ### connected to dies, similar for sources
55 load-module module-rescue-streams
56
57 ### Make sure we always have a sink around, even if it is a null sink.
58 load-module module-always-sink
59
60 ### Automatically suspend sinks/sources that become idle for too long
61 load-module module-suspend-on-idle
62
63 ### If autoexit on idle is enabled we want to make sure we only quit
64 ### when no local session needs us anymore.
65 .ifexists module-console-kit.so
66 load-module module-console-kit
67 .endif
68 .ifexists module-systemd-login.so
69 load-module module-systemd-login
70 .endif
71
72 ### Modules to allow autoloading of filters (such as echo cancellation)
73 ### on demand. module-filter-heuristics tries to determine what filters
74 ### make sense, and module-filter-apply does the heavy-lifting of
75 ### loading modules and rerouting streams.
76 load-module module-filter-heuristics
77 load-module module-filter-apply