During the development of another FiveM resource we noticed that the old implementation of InteractSound was acting strange and both cutting off, repeating, or refusing to play our audio files. It was difficult to predict when and if this would happen, but for some audio files this behavior was the norm rather than the exception.
By replacing the buggy HTML5 Audio implementation with howler.js (which defaults to Web Audio API and falls back to HTML5 Audio) all of our issues disappeared, so I figured I'd submit a pull request so that other can benefit from these changes too.
Note that I have not updated the zip file in the repository.
During the development of another FiveM resource we noticed that the old implementation of InteractSound was acting strange and both cutting off, repeating, or refusing to play our audio files. It was difficult to predict when and if this would happen, but for some audio files this behavior was the norm rather than the exception.
By replacing the buggy HTML5 Audio implementation with howler.js (which defaults to Web Audio API and falls back to HTML5 Audio) all of our issues disappeared, so I figured I'd submit a pull request so that other can benefit from these changes too.
Note that I have not updated the zip file in the repository.