github pixijs/sound v6.0.3

42 minutes ago

Fixed

  • Fix: Keep looping after pause and resume (#352) @zbdd
  • Fix: Resume audio on the next tap after iOS stops it (#349) @zbdd
  • Fix: Keep the paused state on a focus with no blur (#348) @zbdd
  • Fix: Auto-pause on tab switch after the first click (#344) @zbdd
  • Fix: Load once when play() comes before load (#342) @zbdd
  • Fix: Resume after a pause in the same tick (#340) @zbdd
  • Fix: Name and log file in decode errors (#330) @zbdd
  • Fix: Report a decode error to the loaded callback only once (#326) @zbdd
  • Fix: Return NaN for the duration of a sound that hasn't loaded (#325) @zbdd
  • Fix: Respect the play speed for sprites (#319) @zbdd
  • Fix: Ignore undefined options instead of overriding the defaults (#317) @ColumbusLabs
  • Fix: Treat an undefined start as zero when playing a sound (#314) @voidsipp
  • Chore: Put types first in the package exports (#332) @zbdd

Docs

  • Chore: Replace the README browser list with PixiJS v8 support (#354) @zbdd
  • Chore: Document that the iOS silent switch mutes WebAudio (#355) @zbdd
  • Chore: Explain named exports versus the PIXI.sound global in the README (#356) @zbdd
  • Chore: Document sound options and sprites in Assets data (#357) @zbdd
  • Chore: Document the browser autoplay policy in the README (#358) @zbdd
  • Chore: Add gapless Opus versions of the demo loops (#359) @zbdd
  • Chore: Document that stopAll skips sounds not added to the library (#360) @zbdd
  • Chore: Document how to write a custom filter (#361) @zbdd
  • Chore: Document that global options override local ones in add (#318) @zbdd

Heads up

If you suspend the AudioContext yourself, the next tap now resumes it (#349). To pause, use sound.pauseAll() or sound.context.paused.

resumeAll() followed by pauseAll() in the same tick now leaves the audio suspended (#340). Before, it kept running while paused. playEmptySound() no longer starts the audio context while sounds are paused (#344).

The iOS recovery in #349 hasn't been confirmed on a real device yet, so feedback is welcome.

Chores

  • Chore: Run CI once per pull request (#333) @zbdd
  • Chore: Use promises in the shared test suite (#331) @zbdd
  • Chore: Wait on the audio clock in timing tests instead of sleeping (#329) @zbdd
  • Chore: Run CI on Node 24 (#298) @zbdd
  • Chore: Deploy to S3 with the runner's AWS CLI (#301) @zbdd
  • Chore: Bump minimatch from 3.1.2 to 3.1.5 (#334)
  • Chore: Bump qs from 6.11.0 to 6.17.1 (#300)

Don't miss a new sound release

NewReleases is sending notifications on new releases.