Skip to content

Commit

Permalink
tvintris: loop music forever (vlang#504) (vlang#515)
Browse files Browse the repository at this point in the history
Co-authored-by: Leon Arndt <[email protected]>
  • Loading branch information
larpon and leon-arndt authored Jul 12, 2023
1 parent b2ad2a4 commit 341b226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tvintris/tvintris.v
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ fn (mut sdlc SdlContext) set_sdl_context(w int, h int, titl string) {
sdlc.actx.waves[1] = mix.load_wav(snd_line_name.str)
sdlc.actx.waves[2] = mix.load_wav(snd_double_name.str)
sdlc.actx.volume = mix.maxvolume
if mix.play_music(sdlc.actx.music, 1) != -1 {
if mix.play_music(sdlc.actx.music, -1) != -1 {
mix.volume_music(sdlc.actx.volume)
}
njoy := sdl.num_joysticks()
Expand Down

0 comments on commit 341b226

Please sign in to comment.