mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Add infinite looping comment for Music.play
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user