fadeMusic(fade speed, fade target)

From pinHeck Wiki
Revision as of 21:25, 21 September 2014 by Benheck (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fades the currently playing music at speed to target.

Example:

fadeMusic(3, 0);

Fade music to a volume of 0 over 3 seconds of time.

fadeMusic(0, 0);

Stops music immediately - works the same as stopMusic()

After music is faded to 0 volume it is stopped. When a new music clip is started it will be at the default volume level.