153a5a1b3Sopenharmony_ci#!/usr/bin/pulseaudio -nF 253a5a1b3Sopenharmony_ci# 353a5a1b3Sopenharmony_ci# This file is part of PulseAudio. 453a5a1b3Sopenharmony_ci# 553a5a1b3Sopenharmony_ci# PulseAudio is free software; you can redistribute it and/or modify it 653a5a1b3Sopenharmony_ci# under the terms of the GNU Lesser General Public License as published by 753a5a1b3Sopenharmony_ci# the Free Software Foundation; either version 2 of the License, or 853a5a1b3Sopenharmony_ci# (at your option) any later version. 953a5a1b3Sopenharmony_ci# 1053a5a1b3Sopenharmony_ci# PulseAudio is distributed in the hope that it will be useful, but 1153a5a1b3Sopenharmony_ci# WITHOUT ANY WARRANTY; without even the implied warranty of 1253a5a1b3Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1353a5a1b3Sopenharmony_ci# General Public License for more details. 1453a5a1b3Sopenharmony_ci# 1553a5a1b3Sopenharmony_ci# You should have received a copy of the GNU Lesser General Public License 1653a5a1b3Sopenharmony_ci# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 1753a5a1b3Sopenharmony_ci 1853a5a1b3Sopenharmony_ci# This startup script is used only if PulseAudio is started per-user 1953a5a1b3Sopenharmony_ci# (i.e. not in system mode) 2053a5a1b3Sopenharmony_ci 2153a5a1b3Sopenharmony_ci.fail 2253a5a1b3Sopenharmony_ci 2353a5a1b3Sopenharmony_ci# Load mandatory modules 2453a5a1b3Sopenharmony_ciload-module libmodule-native-protocol-unix.z.so auth-cookie=/data/data/.pulse_dir/state/cookie socket=/dev/unix/socket/native 2553a5a1b3Sopenharmony_ci 2653a5a1b3Sopenharmony_ci# the module for command line operation like pacmd 2753a5a1b3Sopenharmony_ci# load-module libmodule-cli-protocol-unix.z.so 2853a5a1b3Sopenharmony_ci 2953a5a1b3Sopenharmony_ci### Load audio drivers statically 3053a5a1b3Sopenharmony_ci### (it's probably better to not load these drivers manually, but instead 3153a5a1b3Sopenharmony_ci### use module-udev-detect -- see below -- for doing this automatically) 3253a5a1b3Sopenharmony_ciload-module libmodule-suspend-on-idle.z.so timeout=3 3353a5a1b3Sopenharmony_ci 3453a5a1b3Sopenharmony_ci### Make some devices default 3553a5a1b3Sopenharmony_ci#set-default-sink output 3653a5a1b3Sopenharmony_ci#set-default-source input 37