140 lines
4.6 KiB
Text
140 lines
4.6 KiB
Text
#!/usr/bin/pulseaudio -nF
|
|
#
|
|
# This file is part of PulseAudio.
|
|
#
|
|
# PulseAudio is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# PulseAudio is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# This startup script is used only if PulseAudio is started per-user
|
|
# (i.e. not in system mode)
|
|
|
|
.nofail
|
|
|
|
.fail
|
|
|
|
load-module module-droid-keepalive
|
|
|
|
|
|
### Automatically augment property information from .desktop files
|
|
### stored in /usr/share/application
|
|
load-module module-augment-properties
|
|
|
|
load-module module-null-sink sink_name=sink.null rate=48000
|
|
|
|
load-module module-stream-restore
|
|
|
|
### Switch when connected by default (ubports)
|
|
load-module module-switch-on-connect ignore_virtual=yes
|
|
### Should be after module-*-restore but before module-*-detect (sfos)
|
|
load-module module-switch-on-port-available
|
|
|
|
|
|
### If droid-card needs other arguments than the default, have the new
|
|
### load-module line in /etc/pulse/arm_droid_card_custom.pa
|
|
.ifexists /etc/pulse/arm_droid_card_custom.pa
|
|
.include /etc/pulse/arm_droid_card_custom.pa
|
|
.else
|
|
load-module module-droid-card rate=48000
|
|
.endif
|
|
|
|
### Needed on many new devices. HADK guide explains how to implement this fully
|
|
.ifexists module-droid-glue.so
|
|
.nofail
|
|
load-module module-droid-glue
|
|
.fail
|
|
.endif
|
|
|
|
.ifexists module-droid-hidl-28.so
|
|
.nofail
|
|
load-module module-droid-hidl-28
|
|
.fail
|
|
.endif
|
|
|
|
load-module module-null-sink sink_name=sink.fake.sco rate=8000 channels=1
|
|
load-module module-null-source source_name=source.fake.sco rate=8000 channels=1
|
|
#load-module module-bluetooth-discover bluez4_args="sco_sink=sink.fake.sco sco_source=source.fake.sco" bluez5_args="headset=droid"
|
|
|
|
#load-module module-policy-enforcement
|
|
|
|
load-module module-role-ducking trigger_roles=alarm,notification,warning ducking_roles=x-maemo volume=-200dB
|
|
|
|
### Load several protocols
|
|
.ifexists module-esound-protocol-unix.so
|
|
load-module module-esound-protocol-unix
|
|
.endif
|
|
load-module module-native-protocol-unix
|
|
|
|
### Network access (may be configured with paprefs, so leave this commented
|
|
### here if you plan to use paprefs)
|
|
#load-module module-esound-protocol-tcp
|
|
#load-module module-native-protocol-tcp
|
|
#load-module module-zeroconf-publish
|
|
|
|
### Load the RTP receiver module (also configured via paprefs, see above)
|
|
#load-module module-rtp-recv
|
|
|
|
### Load the RTP sender module (also configured via paprefs, see above)
|
|
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
|
|
#load-module module-rtp-send source=rtp.monitor
|
|
|
|
### Load additional modules from GSettings. This can be configured with the paprefs tool.
|
|
### Please keep in mind that the modules configured by paprefs might conflict with manually
|
|
### loaded modules.
|
|
.ifexists module-gsettings.so
|
|
.nofail
|
|
load-module module-gsettings
|
|
.fail
|
|
.endif
|
|
|
|
|
|
### Make sure we always have a sink around, even if it is a null sink.
|
|
load-module module-always-sink
|
|
|
|
### Honour intended role device property
|
|
load-module module-intended-roles
|
|
|
|
### Automatically suspend sinks/sources that become idle for too long
|
|
load-module module-suspend-on-idle timeout=1
|
|
|
|
### If autoexit on idle is enabled we want to make sure we only quit
|
|
### when no local session needs us anymore.
|
|
.ifexists module-console-kit.so
|
|
load-module module-console-kit
|
|
.endif
|
|
.ifexists module-systemd-login.so
|
|
load-module module-systemd-login
|
|
.endif
|
|
|
|
### Load DBus protocol
|
|
.ifexists module-dbus-protocol.so
|
|
load-module module-dbus-protocol
|
|
.endif
|
|
|
|
### Move orphan streams to placeholder sinks or sources so that playback doesn't get
|
|
### interrupted. Policy enforcement module then moves the streams to new appropriate
|
|
### sinks or sources.
|
|
#load-module module-rescue-streams sink_name=sink.null source_name=sink.null.monitor
|
|
|
|
### Enable positioned event sounds
|
|
load-module module-position-event-sounds
|
|
|
|
### Modules to allow auto-loading of filters (such as echo cancellation)
|
|
### on demand. module-filter-heuristics tries to determine what filters
|
|
### make sense, and module-filter-apply does the heavy-lifting of
|
|
### loading modules and rerouting streams.
|
|
load-module module-filter-heuristics
|
|
load-module module-filter-apply
|
|
|
|
### Make some devices default
|
|
set-default-sink sink.primary_output
|
|
set-default-source source.droid
|