v2.0.0
Overview
This release adds fallback support for non-WebAudio based browsers (namely IE 9+). This fallback is available using HTML5 element. This was a common requested feature for developers wanting to adopt this library. Filters and other Web Audio API features are ignored if using HTML5 audio.
Added
- Fallback support for IE 9+
- Adds
PIXI.sound.useLegacyto force enable use of HTML5 audio - Support for multiple file-types with glob-like URL string. e.g.,
resources/music.{mp3,ogg}#26 - Adds
PIXI.sound.toggleMuteAll()andPIXI.sound.togglePauseAll()methods - Adds
PIXI.sound.close()andPIXI.sound.init()to re-create the AudioContext #34 - Supports integration with Browserify and Webpack #35
Changed
- 💥 breaking change Drops support for loading using
fs.readFile#29 - 💥 breaking change
srcis nowurlin the Sound setup options - 💥 breaking change
PIXI.sound.SoundInstancehas moved toPIXI.sound.webaudio.WebAudioInstance - 💥 breaking change Removes unminified build files #31
- 💥 breaking change Removes
PIXI.sound.global()global is always defined now #34 - Removes
Object.assignpolyfill, this is already provided by pixi.js #31 - Updated JSDoc template to use @pixi/jsdoc-template
- Updated colors in examples to match new JSDoc template
- The
speedproperty is now a tween-able property