Fade In Audio

Hi,

I can't seem to figure out how to fade in an mp3 after reading the documentation?

This is my code:

music = loadSound('belly.mp3');

// full volume of 1 with 5 second fade in

music.setVolume(1,[5]);

music.play();

Does anyone see what I'm doing wrong??

Tagged:

Answers

Sign In or Register to comment.