Hi,
I am using the latest libs (Lime 7.1.1 + Openfl 8.6.4) and sometimes, randomly I have crashes related to howler, or simple errors that don’t arrest the execution of the application (?!). The latest log I received is this one
Error: Failed to execute 'stop' on 'AudioScheduledSourceNode': cannot call stop without calling start first.
at o.pause (howler.min.js:2)
at e (howler.min.js:4)
at o.Howl.pos (howler.min.js:4)
at lime__$internal_backend_html5_HTML5AudioSource.setPosition (HTML5AudioSource.hx:307)
at lime__$internal_backend_html5_HTML5AudioSource.play (HTML5AudioSource.hx:72)
at lime_media_AudioSource.play (AudioSource.hx:71)
at new openfl_media_SoundChannel (SoundChannel.hx:107)
at openfl_media_Sound.play (Sound.hx:509)
...
What does this mean? Does it mean that howler doesn’t handle the exeption of a stop on a non-playing sound?
You can manually put it into html5/bin/lib folder and change index.html to load howler.core.js instead of howler.min.js.
Or you can create a template Index.html template (your topic).
i had the same isshue. Replaced howler.min.js content with ‘howler.core.js’ and problem was fixed.
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable howler.min.js:2
pause ***howler.min.js:2:10497
e ***howler.min.js:4:9171
Howl.prototype.pos ***howler.min.js:4:3754
setPosition HTML5AudioSource.hx:307:78
play HTML5AudioSource.hx:72:2
play AudioSource.hx:71:2
openfl_media_SoundChannel SoundChannel.hx:107:3
Also, guys, if anyone has a chance to test on IE11, would be great to know if the stock version of Howler works so far, or if we still need our patch: https://github.com/goldfire/howler.js/pull/1052
I’d suggest using howler.core, not howler full, as it has cleaner sound (I don’t know why) and no odd bugs in Firefox which I had with howler full 2.0.15.