gmpassos / howler.dart

Dart audio library for the modern web. Dart port of Howler.js (https://github.com/goldfire/howler.js)
MIT License
31 stars 6 forks source link

Unable to `unload` an audio #6

Closed jaggernod closed 1 year ago

jaggernod commented 4 years ago

Reproduction steps:

  1. Load a single audio
  2. Start playing the audio
  3. unload() the audio

Observed behaviour: NPE is thrown. Due to the null pointer in the _releaseHtml5Audio as audio._unlocked is null.

Desired behaviour: Audio is unloaded and ready to play other tracks

gmpassos commented 4 years ago

Can you test with the last version?

If possible, send the error stack trace.

jaggernod commented 4 years ago

Thank you very much for the answer but I have switched to another solution so am not able to check.

SaadArdati commented 4 years ago

@jaggernod out of curiosity, what is the solution you switched to?

jaggernod commented 4 years ago

Just plain AudioElement form html_dart2js is sufficient.