Browse Source

retrofe new version that stops ampli when necessary, start_launcher stopping/restrarting ampli when necessary

Vincent-FK 3 years ago
parent
commit
a0b6d3f8e8

+ 8 - 0
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

+ 1 - 1
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