mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 23:58:50 +01:00
Do not use /etc/asound.conf for gpSP as it does not like mono downmix (sound was saturated)
This commit is contained in:
parent
0feda26f1a
commit
0c9b0c1dc5
@ -87,12 +87,27 @@ save)
|
|||||||
# Add the magic sauce to launch the process in background,
|
# Add the magic sauce to launch the process in background,
|
||||||
# record the PID into a file, wait for the process to
|
# record the PID into a file, wait for the process to
|
||||||
# terminate and erase the recorded PID
|
# terminate and erase the recorded PID
|
||||||
|
# Do not use /etc/asound.conf for gpSP as it does not like
|
||||||
|
# mono downmix (sound was saturated)
|
||||||
|
if grep -q "gpsp" /mnt/instant_play; then
|
||||||
|
cat << EOF >> "${INSTANT_PLAY_FILE}"
|
||||||
|
&
|
||||||
|
rw
|
||||||
|
mv -f /etc/asound.conf /etc/asound.conf.BAK
|
||||||
|
pid record \$!
|
||||||
|
wait \$!
|
||||||
|
pid erase
|
||||||
|
mv -f /etc/asound.conf.BAK /etc/asound.conf
|
||||||
|
ro
|
||||||
|
EOF
|
||||||
|
else
|
||||||
cat << EOF >> "${INSTANT_PLAY_FILE}"
|
cat << EOF >> "${INSTANT_PLAY_FILE}"
|
||||||
&
|
&
|
||||||
pid record \$!
|
pid record \$!
|
||||||
wait \$!
|
wait \$!
|
||||||
pid erase
|
pid erase
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
# Now terminate gracefully
|
# Now terminate gracefully
|
||||||
exec powerdown now
|
exec powerdown now
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user