Add infinite looping comment for Music.play

This commit is contained in:
Mike
2019-05-21 14:53:20 +02:00
committed by Cobrand
parent 85e2a63696
commit 311edbd6fd
+1 -1
View File
@@ -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 {