Skip to main content
Known Participant
October 8, 2021
Answered

In the HTML5 canvas project, some sounds are not played.

  • October 8, 2021
  • 1 reply
  • 1881 views

I made a demo animation with voice (HTML5 Canvas). I cut each sentence into a sound file, and there were 30 sound files in total. They are placed in sequence on the timeline. Background music plays at the same time, so demo animations can only play a maximum of two sounds at one time. After the release, about 3 sounds did not play, These unplayed sounds were random, and each time a different sound did not play.

    This topic has been closed for replies.
    Correct answer kglad

    Thank you very much. After I use your script again, the background music can play normally. But there are the following questions. Would you like to help me again?

    1. In the background music loop, noise appears at the moment before the next playback.

    2. Is there a way to make the background music play or pause following the play and pause buttons of the animation?


    1. edit the sound in audition to remove sound before the start and after the finish of the desired sound.

    2. yes, you can use the soundjs api, SoundJS v1.0.0 API Documentation : SoundJS (createjs.com) which includes play() and stop() methods

    1 reply

    Known Participant
    October 9, 2021

    In addition, 30 sounds are placed in the voice layer and background music is placed in the BGM layer.

    kglad
    Community Expert
    Community Expert
    October 9, 2021

    do all the sounds have their sync property set to stream?

    Known Participant
    October 19, 2021

    does your background music have linkage id = soundID?


    Yes, the background music have linkage id = soundID.