X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Mixer-Music.html-inc;h=0251a679e00a61aaa27efcc37937d7b4c813a006;hb=d6a8ee088684c80264483be3fe6c8d5654d0328b;hp=5f97a0eb8acd4696a53852c2bf37622098d22836;hpb=09d3d3cea1d78106a6284e2a928d737875936240;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Mixer-Music.html-inc b/pages/SDL-Mixer-Music.html-inc index 5f97a0e..0251a67 100644 --- a/pages/SDL-Mixer-Music.html-inc +++ b/pages/SDL-Mixer-Music.html-inc @@ -23,7 +23,7 @@
my $music = SDL::Mixer::Music::load_MUS( $file );-
load_MUS
loads a music file into a SDL::Mixer::MixMusic
structure. This can be passed to SDL::Mixer::Music::play_music.
load_MUS
loads a music file into a SDL::Mixer::MixMusic
structure. This can be passed to play_music.
SDL::Mixer::Music::hook_music_finished( $callback ); +SDL::Mixer::Music::hook_music_finished( 'main::callback' );-This callback is called when music called by e.g. SDL::Mixer::Music::play_music or SDL::Mixer::Music::fade_in_music stops naturally. +
This callback is called when music called by e.g. SDL::Mixer::Music::play_music or +SDL::Mixer::Music::fade_in_music stops naturally. This happens when the music is over or is fading out.
Note: If you play music via SDL::Mixer::Music::hook_music, this callback will never be called.
Example:
@@ -244,7 +245,9 @@ Passing zero is similar to rewinding the song.Jumps to position seconds from the current position in the stream. So you may want to call SDL::Mixer::Music::rewind_music before this. Does not go in reverse... negative values do nothing.
-Returns:
+ + +0
on success, or-1
if the codec doesn't support this function.Returns:
0
on success, or-1
if the codec doesn't support this function.
my $paused = SDL::Mixer::Music::paused_music();-
Returns 1
if the music is paused, otherwise 0
.
Returns 1
if the music is paused, otherwise 0
.
my $playing_music = SDL::Mixer::Music::playing_music();-
Returns 1
if the music is playing sound, otherwise 0
. It does'nt check if the music is paused.
Returns 1
if the music is playing sound, otherwise 0
. It does'nt check if the music is paused.