From 2e7ba26ac73cb83ec4615383227fd0eacd1fb198 Mon Sep 17 00:00:00 2001 From: Max5377 <69468517+Max5377@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:39:11 +0300 Subject: [PATCH] Music tracks will be played continuously while game is paused MusicPlayer will now continue to play tracks while game is paused, instead of playing one track and get silenced until game is unpaused. --- src/lua/LuaMusic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua/LuaMusic.cpp b/src/lua/LuaMusic.cpp index 389dd775735..669fef79807 100644 --- a/src/lua/LuaMusic.cpp +++ b/src/lua/LuaMusic.cpp @@ -254,6 +254,7 @@ void LuaMusic::Register() Pi::GetMusicPlayer().onSongFinished.connect([]() { LuaEvent::Queue("onSongFinished"); + LuaEvent::Emit(); }); LUA_DEBUG_END(l, 0);