<li><a href="#get_music_hook_data">get_music_hook_data</a></li>
<li><a href="#play_music">play_music</a></li>
<li><a href="#fade_in_music">fade_in_music</a></li>
-<li><a href="#volume_music">volume_music</a></li>
-<li><a href="#halt_music">halt_music</a></li>
<li><a href="#fade_out_music">fade_out_music</a></li>
<li><a href="#fading_music">fading_music</a></li>
+<li><a href="#volume_music">volume_music</a></li>
+<li><a href="#halt_music">halt_music</a></li>
<li><a href="#pause_music">pause_music</a></li>
<li><a href="#resume_music">resume_music</a></li>
<li><a href="#rewind_music">rewind_music</a></li>
+<li><a href="#set_music_position">set_music_position</a></li>
<li><a href="#paused_music">paused_music</a></li>
<li><a href="#playing_music">playing_music</a>
</li>
</div>
<h2 id="play_music">play_music</h2>
<div id="play_music_CONTENT">
-<pre> my $play_music = SDL::Mixer::Music::play_music( $mix_music, $repeats );
+<pre> my $play_music = SDL::Mixer::Music::play_music( $mix_music, $loops );
</pre>
<p><code>play_music</code> plays a given <code>SDL::Mixer::MixMusic</code>.
-Passing -1 to <code>$repeats</code> will loop the music infinitely. </p>
+Passing -1 to <code>$loops</code> will loop the music infinitely. </p>
<p>Example:</p>
<pre> my $music = SDL::Mixer::Music::load_MUS( 'music.mp3' );
print("Something went wrong!\n");
}
-
-
-
</pre>
</div>
<h2 id="fade_in_music">fade_in_music</h2>
<div id="fade_in_music_CONTENT">
-
-</div>
-<h2 id="volume_music">volume_music</h2>
-<div id="volume_music_CONTENT">
-
-</div>
-<h2 id="halt_music">halt_music</h2>
-<div id="halt_music_CONTENT">
-<pre> SDL::Mixer::Music::halt_music();
+<pre> my $music = SDL::Mixer::Music::fade_in_music( $mix_music, $loops, $ms );
</pre>
-<p>Halts the music.</p>
+<p>Same as <a href="http://search.cpan.org/perldoc?play_music">play_music</a> but you can specify the fade-in time by <code>$ms</code>.</p>
</div>
<h2 id="fade_out_music">fade_out_music</h2>
<div id="fade_out_music_CONTENT">
+<pre> my $fading_music = SDL::Mixer::Music::fade_out_music( $ms );
+
+</pre>
+<p><code>fade_out_music</code> fades out the music with a duration specified in <code>ms</code> in milliseconds.</p>
+<p>Returns the the number of channels that will be faded out.</p>
</div>
<h2 id="fading_music">fading_music</h2>
<div id="fading_music_CONTENT">
-<pre> my $fading_music = SDL::Mixer::Channels::fading_music();
+<pre> my $fading_music = SDL::Mixer::Music::fading_music();
</pre>
<p>Returns one of the following:</p>
</div>
+<h2 id="volume_music">volume_music</h2>
+<div id="volume_music_CONTENT">
+
+</div>
+<h2 id="halt_music">halt_music</h2>
+<div id="halt_music_CONTENT">
+<pre> SDL::Mixer::Music::halt_music();
+
+</pre>
+<p>Halts the music.</p>
+
+</div>
<h2 id="pause_music">pause_music</h2>
<div id="pause_music_CONTENT">
<pre> SDL::Mixer::Music::pause_music();
</div>
<h2 id="resume_music">resume_music</h2>
<div id="resume_music_CONTENT">
-<pre>
-
-
- SDL::Mixer::Music::resume_music();
+<pre> SDL::Mixer::Music::resume_music();
</pre>
<p>Resumes the music.</p>
</div>
<h2 id="rewind_music">rewind_music</h2>
<div id="rewind_music_CONTENT">
-<pre>
+<pre> SDL::Mixer::Music::rewind_music();
+</pre>
+<p>Rewinds the music.</p>
- SDL::Mixer::Music::rewind_music();
+</div>
+<h2 id="set_music_position">set_music_position</h2>
+<div id="set_music_position_CONTENT">
+<pre> SDL::Mixer::Music::set_music_position( $position );
</pre>
-<p>Rewinds the music.</p>
+<p>Set the position of the currently playing music. The position takes different meanings for different music sources. It only works on the
+music sources listed below.</p>
+<dl>
+ <dt>MOD</dt>
+ <dd>
+ <p>The double is cast to Uint16 and used for a pattern number in the module.
+Passing zero is similar to rewinding the song. </p>
+ </dd>
+ <dt>OGG</dt>
+ <dd>
+ <p>Jumps to position seconds from the beginning of the song. </p>
+ </dd>
+ <dt>MP3</dt>
+ <dd>
+ <p>Jumps to position seconds from the current position in the stream.
+So you may want to call <a href="http://search.cpan.org/perldoc?rewind_music">rewind_music</a> before this.
+Does not go in reverse... negative values do nothing. </p>
+ <p>Returns: <code>0</code> on success, or <code>-1</code> if the codec doesn't support this function. </p>
</div>
<h2 id="paused_music">paused_music</h2>
<pre> my $paused = SDL::Mixer::Music::paused_music();
</pre>
-<p>Returns <code>1</code> if the music is paused, otherwise <code>0</code>.</p>
+ <p>Returns <code>1</code> if the music is paused, otherwise <code>0</code>.</p>
</div>
<h2 id="playing_music">playing_music</h2>
<pre> my $playing_music = SDL::Mixer::Music::playing_music();
</pre>
-<p>Returns <code>1</code> if the music is playing sound, otherwise <code>0</code>. It does'nt check if the music is paused.</p>
+ <p>Returns <code>1</code> if the music is playing sound, otherwise <code>0</code>. It does'nt check if the music is paused.</p>
</div>
</div>
\ No newline at end of file