blob: b81e711f1ceaf3c433eae1501e942593bdade68c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
##############################
# #
# Pulseaudio configuration #
# #
##############################
# Create the directory where pulseaudio store its files and put it in tempfs
add_tmpfs "/var/lib/pulse"
if ! grep -qE '^load-module module-native-protocol-tcp' "${TARGET_DIR}/etc/pulse/system.pa"; then
cat << __EOF__ >> "${TARGET_DIR}/etc/pulse/system.pa"
#load-module module-bluetooth-policy
#load-module module-bluetooth-discover
load-module module-native-protocol-tcp listen=0.0.0.0 auth-anonymous=1
load-module module-roc-sink-input
__EOF__
fi
if ! grep -qE 'avoid-resampling = true' "${TARGET_DIR}/etc/pulse/daemon.conf"; then
cat << __EOF__ >> "${TARGET_DIR}/etc/pulse/daemon.conf"
avoid-resampling = true
__EOF__
fi
|