~michael-sheldon/ubuntu-touch-session/fix-1659388

« back to all changes in this revision

Viewing changes to touch.pa

  • Committer: CI Train Bot
  • Author(s): Łukasz 'sil2100' Zemczak
  • Date: 2016-04-07 11:59:03 UTC
  • mfrom: (280.1.1 ubuntu-touch-session)
  • Revision ID: ci-train-bot@canonical.com-20160407115903-yilpjrfhhb9xyqe3
Add an etc profile.d to add the /custom/usr/share directory to enable using customized notification sounds by the push client. Fixes: #1413818

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
# This script is specific to Ubuntu Touch
 
23
# Needed to avoid conflicting policies with desktop
 
24
 
 
25
.fail
 
26
 
 
27
### Automatically restore the volume of streams
 
28
load-module module-stream-restore restore_device=false restore_muted=false fallback_table=/etc/pulse/touch-stream-restore.table
 
29
 
 
30
### Automatically augment property information from .desktop files
 
31
### stored in /usr/share/application
 
32
load-module module-augment-properties
 
33
 
 
34
### Should be after module-*-restore but before module-*-detect
 
35
load-module module-switch-on-port-available
 
36
 
 
37
### Switch when connected by default
 
38
load-module module-switch-on-connect skip_abstract=yes
 
39
 
 
40
### Automatically load the Pulseaudio Droid
 
41
.ifexists module-droid-discover.so
 
42
load-module module-droid-discover voice_virtual_stream=true
 
43
.endif
 
44
 
 
45
### Automatically load the trust-store module
 
46
.ifexists module-trust-store.so
 
47
load-module module-trust-store
 
48
.endif
 
49
 
 
50
### Fake sink and source used by HSP
 
51
load-module module-null-sink sink_name=sink.fake.sco rate=8000 channels=1
 
52
load-module module-null-source source_name=source.fake.sco rate=8000 channels=1
 
53
 
 
54
### Automatically load driver modules depending on the hardware available
 
55
#.ifexists module-udev-detect.so
 
56
#load-module module-udev-detect
 
57
#.endif
 
58
 
 
59
### Automatically connect sink and source if JACK server is present
 
60
.ifexists module-jackdbus-detect.so
 
61
.nofail
 
62
load-module module-jackdbus-detect channels=2
 
63
.fail
 
64
.endif
 
65
 
 
66
### Automatically load driver modules for Bluetooth hardware
 
67
.ifexists module-bluetooth-policy.so
 
68
load-module module-bluetooth-policy
 
69
.endif
 
70
 
 
71
.ifexists module-bluez5-discover.so
 
72
load-module module-bluez5-discover headset=both profile=a2dp_sink sco_sink=sink.fake.sco sco_source=source.fake.sco
 
73
.endif
 
74
 
 
75
### Load several protocols
 
76
.ifexists module-esound-protocol-unix.so
 
77
load-module module-esound-protocol-unix
 
78
.endif
 
79
load-module module-native-protocol-unix
 
80
 
 
81
### Network access (may be configured with paprefs, so leave this commented
 
82
### here if you plan to use paprefs)
 
83
#load-module module-esound-protocol-tcp
 
84
#load-module module-native-protocol-tcp
 
85
#load-module module-zeroconf-publish
 
86
 
 
87
### Load the RTP receiver module (also configured via paprefs, see above)
 
88
#load-module module-rtp-recv
 
89
 
 
90
### Load the RTP sender module (also configured via paprefs, see above)
 
91
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
 
92
#load-module module-rtp-send source=rtp.monitor
 
93
 
 
94
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
 
95
### Please keep in mind that the modules configured by paprefs might conflict with manually
 
96
### loaded modules.
 
97
.ifexists module-gconf.so
 
98
.nofail
 
99
load-module module-gconf
 
100
.fail
 
101
.endif
 
102
 
 
103
### Automatically restore the default sink/source when changed by the user
 
104
### during runtime
 
105
### NOTE: This should be loaded as early as possible so that subsequent modules
 
106
### that look up the default sink/source get the right value
 
107
load-module module-default-device-restore
 
108
 
 
109
### Automatically move streams to the default sink if the sink they are
 
110
### connected to dies, similar for sources
 
111
load-module module-rescue-streams
 
112
 
 
113
### Make sure we always have a sink around, even if it is a null sink.
 
114
load-module module-always-sink
 
115
 
 
116
### Automatically suspend sinks/sources that become idle for too long
 
117
load-module module-suspend-on-idle
 
118
 
 
119
### If autoexit on idle is enabled we want to make sure we only quit
 
120
### when no local session needs us anymore.
 
121
.ifexists module-console-kit.so
 
122
load-module module-console-kit
 
123
.endif
 
124
.ifexists module-systemd-login.so
 
125
load-module module-systemd-login
 
126
.endif
 
127
 
 
128
### Enable positioned event sounds
 
129
load-module module-position-event-sounds
 
130
 
 
131
### Cork music/video streams when a phone stream is active
 
132
load-module module-role-cork trigger_roles=phone,alarm cork_roles=alarm,multimedia global=true
 
133
 
 
134
### Ducking streams when certain roles are active
 
135
load-module module-role-ducking trigger_roles=alert ducking_roles=multimedia volume=-20dB
 
136
 
 
137
### Load DBus protocol
 
138
.ifexists module-dbus-protocol.so
 
139
load-module module-dbus-protocol
 
140
.endif
 
141
 
 
142
### Modules to allow autoloading of filters (such as echo cancellation)
 
143
### on demand. module-filter-heuristics tries to determine what filters
 
144
### make sense, and module-filter-apply does the heavy-lifting of
 
145
### loading modules and rerouting streams.
 
146
load-module module-filter-heuristics
 
147
load-module module-filter-apply
 
148
 
 
149
### Make some devices default
 
150
set-default-sink sink.primary
 
151
set-default-source source.primary