Skip to content

Commit

Permalink
Music tracks will be played continuously while game is paused
Browse files Browse the repository at this point in the history
MusicPlayer will now continue to play tracks while game is paused, instead of playing one track and get silenced until game is unpaused.
  • Loading branch information
Max5377 committed Oct 10, 2023
1 parent 86153e7 commit 81c09fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lua/LuaMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ void LuaMusic::Register()

Pi::GetMusicPlayer().onSongFinished.connect([]() {
LuaEvent::Queue("onSongFinished");
LuaEvent::Emit();
});

LUA_DEBUG_END(l, 0);
Expand Down

0 comments on commit 81c09fd

Please sign in to comment.