Playing (and pre-loading?) sounds in Javascript

0 favourites
  • 3 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • My app requires me to use Javascript and I'm trying to sync up some sounds to that code using audio_play(). The sounds are coming from my website... so there is lag.

    1. I know that I can easily pre-load sounds in Construct 3. Is there any way to play these pre-loaded sounds using Javascript? (Rather than grabbing them from my website.)

    2. Alternately, is there a simple way to pre-load sounds in Javascript? I've found a way to do it in HTML but I'm not sure how to use that information. (I'm not very familiar with website coding.)

    Thanks for any suggestions!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The Audio object has actions to preload and play sounds. Why not use that?

  • My app is using Bluetooth to control an electronic device, and all of the Bluetooth code is in Javascript.

    I have about 53 lines of Javascript code that does some bit manipulation and setup; then I send a Bluetooth signal to the device. I've found that I get better audio sync when I play the sound on line 52, right before I send the signal.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)