Skip to main content
Inspiring
May 22, 2016
Question

How to control audio in Animate CC

  • May 22, 2016
  • 1 reply
  • 7131 views

Dear Friends,

please tell me the ways to control audio sounds (voice over sink) in Animate CC. Iam converting my flash elearning lessons in to html5 with Animate CC. In my flash lessons I have voice over as stream and animation is sinking with voice over.

Kindly help me to convert this lessons....Thanks in Advance,

Thanks and Regards,

Syed Abdul Rahim

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 22, 2016

you'll need to play your sound using easeljs, create a loop and use the sound's position property to determine what to display.

rahimhajiAuthor
Inspiring
May 23, 2016

Dear Mr.kglad,

Greetings! thks for ur info. Can u pls send me a sample code? is it possible to pause and play a sound in animate CC? here I tried with time line import of audio, in my lesson, sound is finishing fast, animation coming later.. no voice over sync... pls advice me, or send me a sample code.

Thanks and Regards,

Syed Abdul Rahim

kglad
Community Expert
Community Expert
May 26, 2016

Thks Mr.kglad,

Please tell me how can I load multiple sounds and play each whenever necessary. My I dear is cut each vo as separate sound, and play whenever it need to play.

Thanks in advance....

Thanks and Regards,

Syed Abdul Rahim


to load multiple sounds:

var path = "./";

var sounds = [{src:"sound1.mp3", id:"sound1_id"},{src:"sound2.mp3", id:"sound2_id"}];

createjs.Sound.addEventListener("fileload", loadedF.bind(this));

createjs.Sound.registerSounds(sounds, path);

function loadedF(e) {

sound1 = createjs.Sound.play("sound1_id");

createjs.Ticker.addEventListener("tick", tickF);

}

function tickF(e) {

// display whatever based on sound.position;

// use sound2 = createjs.Sound.play("sound2_id");  // whenever

}