From a0b6d3f8e8a376253681dc6d9c07817c532d0bdf Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Wed, 6 Jan 2021 02:04:52 +0100 Subject: [PATCH] retrofe new version that stops ampli when necessary, start_launcher stopping/restrarting ampli when necessary --- .../funkey/rootfs-overlay/usr/local/sbin/start_launcher | 8 ++++++++ FunKey/package/retrofe/retrofe.mk | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher index c6593df..3f7d40a 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher @@ -39,6 +39,9 @@ while true; do else if [ -f "${GMENU2X_FILE}" ]; then + # Force stop ampli (no sound in gmenu2x) + start_audio_amp 0 + # Launch gmenu2x gmenu2x& else @@ -53,6 +56,11 @@ while true; do wait $! erase_pid + # Restart ampli audio if necessary + if [[ "$(volume_get)" -ne "0" ]]; then + start_audio_amp 1 >/dev/null 2>&1 + fi + # In case retrofe quits with errors, clear graphic VT termfix_all fi diff --git a/FunKey/package/retrofe/retrofe.mk b/FunKey/package/retrofe/retrofe.mk index da153de..a871dfa 100644 --- a/FunKey/package/retrofe/retrofe.mk +++ b/FunKey/package/retrofe/retrofe.mk @@ -4,7 +4,7 @@ # ################################################################################ -RETROFE_VERSION = 343f64f +RETROFE_VERSION = d07ca9c RETROFE_SITE_METHOD = git RETROFE_SITE = https://github.com/FunKey-Project/RetroFE.git RETROFE_DEPENDENCIES = gstreamer1 gst1-plugins-base sdl sdl_image sdl_mixer sdl_sound sdl_ttf libglib2 sqlite zlib