Skip to content

Conversation

@ACrazyTown
Copy link
Contributor

@ACrazyTown ACrazyTown commented May 25, 2025

Previously, all AudioBuffer methods except for fromBytes() and fromBase64() defaulted to using Web Audio, with an optional flag to force HTML5 Audio.

I've done the same here but also set the preload flag to true because:

  • Sounds that have preload set to false are required to call load() on the Howl instance. See: https://github.com/goldfire/howler.js?tab=readme-ov-file#load.
    I believe the reason why it worked before without calling howl.load() is due to a difference with how HTML5 Audio and Web Audio works.
  • IMO it makes sense that a sound from already loaded bytes is loaded and ready to play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant