fadeMusic(fade speed, fade target)

From pinHeck Wiki
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.