Music.fadeIn

Starts this music by fading in over ms milliseconds, will stop other musics.

  1. bool fadeIn(int ms, int loops)
  2. bool fadeIn(int ms, int loops, double position)
    class Music
    bool
    fadeIn
    (
    int ms
    ,
    int loops
    ,
    double position
    )

Parameters

ms int

Milliseconds for the fade-in effect to complete.

loops int

-1 loops will play forever. 0 plays the music zero times.

position double

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. <b>MOD</b> The double is cast to Uint16 and used for a pattern number in the module. Passing zero is similar to rewinding the song. <b>OGG/MP3</b> Jumps to position seconds from the beginning of the song.

Return Value

Type: bool

true on success, or false on errors

Meta