Repository navigation
Releases
v6.0.3
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)
v5.2.5
Fixed
- Fix: Keep looping after pause and resume (#353, backport of #352) @zbdd
- Fix: Resume audio on the next tap after iOS stops it (#351, backport of #349) @zbdd
- Fix: Keep the paused state on a focus with no blur (#350, backport of #348) @zbdd
- Fix: Auto-pause on tab switch after the first click (#346, backport of #344) @zbdd
- Fix: Load once when play() comes before load (#345, backport of #342) @zbdd
- Fix: Resume after a pause in the same tick (#343, backport of #340) @zbdd
- Fix: Name and log file in decode errors (#336, backport of #330) @zbdd
- Fix: Report a decode error to the loaded callback only once (#328, backport of #326) @zbdd
- Fix: Return NaN for the duration of a sound that hasn't loaded (#327, backport of #325) @zbdd
- Fix: Report fetch and HTTP errors when loading a sound (#324, backport of #291) @zbdd
- Fix: Catch fetch errors when loading a sound (#280) @Sprutik
- Fix: Resolve every AssetPack alias for a sound (#323, backport of #285) @zbdd
- Fix: Respect the play speed for sprites (#322, backport of #319) @zbdd
- Fix: Ignore undefined options instead of overriding the defaults (#320, backport of #317) @ColumbusLabs
- Fix: Treat an undefined start as zero when playing a sound (#316, backport of #314) @voidsipp
- Chore: Put types first in the package exports (#338, backport of #332) @zbdd
Docs
- Chore: Replace the README browser list with PixiJS v7 support (#362, backport of #354) @zbdd
- Chore: Document how to write a custom filter (#363, backport of #361) @zbdd
- Chore: Document that global options override local ones in add (#321, backport of #318) @zbdd
Heads up
If you suspend the AudioContext yourself, the next tap now resumes it (#351). To pause, use sound.pauseAll() or sound.context.paused.
resumeAll() followed by pauseAll() in the same tick now leaves the audio suspended (#343). Before, it kept running while paused. playEmptySound() no longer starts the audio context while sounds are paused (#346).
On WebAudio, a failed request now rejects Assets.load and calls loaded with an error naming the URL (#324). Before, a network error left the load unsettled and an HTTP error came back as a decode error. A Sound loaded through Assets with more than one alias is now registered under all of them (#323), so sound.remove(alias) removes every alias that points at the same Sound.
5.x is on the latest-5.x npm dist-tag: npm install @pixi/sound@latest-5.x.
Chores
v5.2.4
Fixed
- Fix: Stop a paused instance for good (#307, backport of #294) @zbdd
- Fix: Resume restarting instances that weren't paused (#308, backport of #295) @zbdd
- Fix: Keep mute and filters when a paused instance resumes (#309, backport of #288) @ErayiSkrt
- Fix: Keep the loop region when a looping instance resumes (#310, backport of #289) @ErayiSkrt
- Fix: HTML audio playing on after an immediate stop (#311, backport of #299) @zbdd
- Fix: Incorrect parameter with progress event on html instance (#312, backport of #268) @bigtimebuddy
Chores
- Fix: Make v5.x CI fail on test, lint, type and bundle failures (#293) @zbdd
- Chore: Deploy to S3 with the runner's AWS CLI (#302) @zbdd
- Chore: Deploy v5.x releases to S3 latest-5.x (#304) @zbdd
- Chore: Run v5.x CI on Node 24 (#305) @zbdd
- Fix: Flaky v5.x legacy tests (#306) @zbdd
Heads up
stop() on a paused WebAudio instance now stops it for good, the same as a playing one. So paused = true; stop(); paused = false on the same instance now throws, since stop() destroys it.
5.x releases on S3 now go to latest-5.x/ instead of latest/, and 5.x releases are on the latest-5.x npm dist-tag: npm install @pixi/sound@latest-5.x.
v6.0.2
Fixed
- Fix: Stop a paused instance for good (#294) @zbdd
- Fix: Resume restarting instances that weren't paused (#295) @zbdd
- Fix: Keep mute and filters when a paused instance resumes (#288) @ErayiSkrt
- Fix: Keep the loop region when a looping instance resumes (#289) @ErayiSkrt
- Fix: Resolve every AssetPack alias for a sound (#285) @StitchAndGlitchStudio
- Fix: Report fetch and HTTP errors when loading a sound (#291) @zac-vgw
- Fix: HTML audio playing on after an immediate stop (#299) @zbdd
Heads up
sound.remove(alias) now removes every alias that points at the same Sound. Before #285 the other aliases were left pointing at the destroyed Sound, so this is a fix, but if one Sound sits under a few aliases (added by hand, or loaded through Assets with more than one alias, which now registers them all) and you remove just one of them, the rest are gone too now.
On WebAudio, a failed request now rejects Assets.load and calls loaded with an error naming the URL (#291). Before, a network error left the load unsettled and an HTTP error came back as a decode error.
Chores
- Fix: Make CI fail on test, lint and type failures (#292)
v6.0.1
What's Changed
- Fix: Incorrect parameter with progress event on html instance by @bigtimebuddy in #268
Full Changelog: v6.0.0...v6.0.1
v6.0.0
v6.0.0-rc
v5.2.3
Fixed
- Fix: Correct math on sine-tone generation (#260) @bigtimebuddy
Chores
- Chore: Bump follow-redirects from 1.15.2 to 1.15.4 (#257)
v5.2.2
v5.2.1
🐛 Fixed
- Fix auto-pause on focus (#249) @bigtimebuddy