153a5a1b3Sopenharmony_ci#!@PA_BINARY@ -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 in system 1953a5a1b3Sopenharmony_ci# mode. 2053a5a1b3Sopenharmony_cichangequote(`[', `]')dnl Set up m4 quoting 2153a5a1b3Sopenharmony_ci 2253a5a1b3Sopenharmony_ci### Automatically restore the volume of streams and devices 2353a5a1b3Sopenharmony_ciload-module module-device-restore 2453a5a1b3Sopenharmony_ciload-module module-stream-restore 2553a5a1b3Sopenharmony_ciload-module module-card-restore 2653a5a1b3Sopenharmony_ci 2753a5a1b3Sopenharmony_ci### Automatically load driver modules depending on the hardware available 2853a5a1b3Sopenharmony_ciifelse(@HAVE_UDEV@, 1, [dnl 2953a5a1b3Sopenharmony_ci.ifexists module-udev-detect@PA_SOEXT@ 3053a5a1b3Sopenharmony_ciload-module module-udev-detect 3153a5a1b3Sopenharmony_ci.else 3253a5a1b3Sopenharmony_ci], @HAVE_COREAUDIO@, 1, [dnl 3353a5a1b3Sopenharmony_ci.ifexists module-coreaudio-detect@PA_SOEXT@ 3453a5a1b3Sopenharmony_ciload-module module-coreaudio-detect 3553a5a1b3Sopenharmony_ci.else 3653a5a1b3Sopenharmony_ci], [dnl 3753a5a1b3Sopenharmony_ci.ifexists module-detect@PA_SOEXT@ 3853a5a1b3Sopenharmony_ci])dnl 3953a5a1b3Sopenharmony_ci### Use the static hardware detection module (for systems that lack udev/hal support) 4053a5a1b3Sopenharmony_ciload-module module-detect 4153a5a1b3Sopenharmony_ci.endif 4253a5a1b3Sopenharmony_ciifelse(@OS_IS_FREEBSD@, 1, [dnl 4353a5a1b3Sopenharmony_ci### FreeBSD devd is used in addition to static detection (only handles hotplug) 4453a5a1b3Sopenharmony_ci.ifexists module-devd-detect@PA_SOEXT@ 4553a5a1b3Sopenharmony_ciload-module module-devd-detect 4653a5a1b3Sopenharmony_ci.endif 4753a5a1b3Sopenharmony_ci])dnl 4853a5a1b3Sopenharmony_ci 4953a5a1b3Sopenharmony_ci### Load several protocols 5053a5a1b3Sopenharmony_ci.ifexists module-esound-protocol-unix@PA_SOEXT@ 5153a5a1b3Sopenharmony_ciload-module module-esound-protocol-unix 5253a5a1b3Sopenharmony_ci.endif 5353a5a1b3Sopenharmony_ciload-module module-native-protocol-unix 5453a5a1b3Sopenharmony_ci 5553a5a1b3Sopenharmony_ci### Automatically restore the default sink/source when changed by the user 5653a5a1b3Sopenharmony_ci### during runtime 5753a5a1b3Sopenharmony_ci### NOTE: This should be loaded as early as possible so that subsequent modules 5853a5a1b3Sopenharmony_ci### that look up the default sink/source get the right value 5953a5a1b3Sopenharmony_ciload-module module-default-device-restore 6053a5a1b3Sopenharmony_ci 6153a5a1b3Sopenharmony_ci### Make sure we always have a sink around, even if it is a null sink. 6253a5a1b3Sopenharmony_ciload-module module-always-sink 6353a5a1b3Sopenharmony_ci 6453a5a1b3Sopenharmony_ci### Automatically suspend sinks/sources that become idle for too long 6553a5a1b3Sopenharmony_ciload-module module-suspend-on-idle 6653a5a1b3Sopenharmony_ci 6753a5a1b3Sopenharmony_ci### Enable positioned event sounds 6853a5a1b3Sopenharmony_ciload-module module-position-event-sounds 6953a5a1b3Sopenharmony_ci 7053a5a1b3Sopenharmony_ci### Allow including a system.pa.d directory, which if present, can be used 7153a5a1b3Sopenharmony_ci### for additional configuration snippets. 7253a5a1b3Sopenharmony_ci### Note that those snippet files must have a .pa file extension, not .conf 7353a5a1b3Sopenharmony_ci.nofail 7453a5a1b3Sopenharmony_ci.include @PA_DEFAULT_CONFIG_DIR_UNQUOTED@/system.pa.d 75