Skip to content

Commit

Permalink
stop playback when no bgm loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Oct 17, 2022
1 parent 3f815f2 commit 7b7837a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mamar-web/src/app/emu/PlaybackControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export default function PlaybackControls() {
const ambientSoundId = useId()

if (!bgm) {
if (isPlaying)
setIsPlaying(false)
return <View />
}

Expand Down

0 comments on commit 7b7837a

Please sign in to comment.