From 311edbd6fd77571f34581007b3e569a2f4e12bdd Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 14 May 2019 10:57:34 -0600 Subject: [PATCH] Add infinite looping comment for Music.play --- src/sdl2/mixer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl2/mixer/mod.rs b/src/sdl2/mixer/mod.rs index 0d7ad886..c704f41e 100644 --- a/src/sdl2/mixer/mod.rs +++ b/src/sdl2/mixer/mod.rs @@ -807,7 +807,7 @@ impl<'a> Music<'a> { } } - /// Play the loaded music loop times through from start to finish. + /// Play the loaded music loop times through from start to finish. Pass -1 to loop forever. pub fn play(&self, loops: i32) -> Result<(), String> { let ret = unsafe { mixer::Mix_PlayMusic(self.raw, loops as c_int) }; if ret == -1 {