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.useLegacy
to 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
src
is nowurl
in the Sound setup options - 💥 breaking change
PIXI.sound.SoundInstance
has 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.assign
polyfill, 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
speed
property is now a tween-able property