Audio Doesn't Stop On Pause After Being Resumed
If I were to play some music and pause the game in the editor view, the music would stop. However, if I resumed the game, resumed the music, and paused the game again, the music would continue playing.
My guess it that there is a list of currently playing audio that is stopped and cleared when the game is paused. But, after the game is resumed, the same audio is resumed, meaning it is not tracked on the list. Therefore, the audio is not stopped when the game is paused for the second time.
Minimal reproducible example found here:
// Pause and unpause the game. The music will stop and start again.
// Pause the game a second time. The music will not stop.
init = function()
placeholder_music = audio.playMusic("placeholder_music")
end
update = function()
placeholder_music.play()
end
draw = function()
end