Skip to main content
Inspiring
November 17, 2016
Answered

[canvas/js] Safari 10 sound playing delayed

  • November 17, 2016
  • 1 reply
  • 479 views

Also, one more issue I've just noticed today. Safari is playing sounds about a half second later than the other browsers. Really irritating when you click a switch and it animates and then the click happens afterwards... anyone know why this is or have similar issues?

Currently playing sound with this really simple code.

    this.playClick = function() {

        // Assumes button_click.mp3 has been added to the project

        createjs.Sound.registerSound("sounds/button_click.mp3", "click", 1);

        self.currentPlayingSnd = createjs.Sound.play("click");

    };

Thanks in advance,

Eric.

This topic has been closed for replies.
Correct answer Colin Holgate

You normally would let Animate publish in a way that sound is taken care of. All sounds would be registered before you get to the point of clicking the button. Try removing your registerSound line.

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
November 17, 2016

You normally would let Animate publish in a way that sound is taken care of. All sounds would be registered before you get to the point of clicking the button. Try removing your registerSound line.

Inspiring
November 18, 2016

Doesn't seem to have much effect on Safari (it's still lagging half a second behind the animation). It does make Chrome faster though...