Skip to content

v1.1.0

Latest

Choose a tag to compare

@cpojer cpojer released this 09 Nov 01:27
· 1 commit to main since this release
v1.1.0
fc48447
  • Added previewSeconds to audio.sound() to reduce memory used by preloaded sound effects. Playback starts from a decoded opening while the rest of the sound decodes in the background. Overlapping voices share that decode. Firefox continues to use a single fully decoded buffer.
  • Added sampleRate to createAudio(). Use 48_000 to match the included AAC music decoder when the output device prefers a different rate.
  • Fixed short music buffers running out between refills.
  • Fixed sound previews cutting out at fractional playback rates or when reversing direction. Loop events now stay in sync with playback when decoding stalls.
  • Fixed Web Audio falling back to HTML audio when a download is interrupted after the response starts. HTML audio now also reports errors that occur after loading.
  • Fixed fades completing early when a voice ends, looping is disabled, or a sound is seeked before playback. Per-voice fades now report completion under the original playback ID, even when a voice is reused.
  • Added a migration guide for Howler users. [Migration guide](https://github.com/nkzw-tech/audio/blob/fc48447/README.md#migrating-from-howler)