resumeBgm method
void
resumeBgm()
Resumes playback when the app returns to foreground (resumed). Does not resume if the user has muted. Re-applies bgmVolume (ENH-95, "focus policy") rather than trusting whatever volume the platform stream happened to keep across a pause — so a duck that was still active right as the app backgrounded can never leave bgm stuck quiet after returning to foreground.
Implementation
void resumeBgm() {
if (!_bgmPlaying || muted.value) return;
_ignoreAudio(_bgm.audioPlayer.setVolume(_targetBgmVolume));
_ignoreAudio(_bgm.resume());
}