Skip to main content
Put the question in the title - more specific titles are better for searching.
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

Audio Questions for my HTML5 Game How to play multiple sounds at once without reloading data?

I am making an HTML5 game, which involves one audio being played multiple times at once.

I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-multiple-times-at-the-same-time

It seemed to help, except later a question came up.:

If I do cloneNode(), will it copy the sound AND the currently loaded audio data, or will it have to reload the data?

Is there a better way to play multiple sounds while making sure no data needs to be reloaded?

Audio Questions for my HTML5 Game

I am making an HTML5 game, which involves one audio being played multiple times at once.

I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-multiple-times-at-the-same-time

It seemed to help, except later a question came up.

If I do cloneNode(), will it copy the sound AND the currently loaded audio data, or will it have to reload the data?

How to play multiple sounds at once without reloading data?

I am making an HTML5 game, which involves one audio being played multiple times at once.

I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-multiple-times-at-the-same-time

It seemed to help, except later a question came up:

If I do cloneNode(), will it copy the sound AND the currently loaded audio data, or will it have to reload the data?

Is there a better way to play multiple sounds while making sure no data needs to be reloaded?

Source Link

Audio Questions for my HTML5 Game

I am making an HTML5 game, which involves one audio being played multiple times at once.

I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-multiple-times-at-the-same-time

It seemed to help, except later a question came up.

If I do cloneNode(), will it copy the sound AND the currently loaded audio data, or will it have to reload the data?