github pixijs/sound v2.0.0

latest releases: v6.0.1, v6.0.0, v6.0.0-rc...
6 years ago

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() and PIXI.sound.togglePauseAll() methods
  • Adds PIXI.sound.close() and PIXI.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 now url in the Sound setup options
  • 💥 breaking change PIXI.sound.SoundInstance has moved to PIXI.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

Fixed

  • Fixes PIXI.loaders.Loader loading WebAudioMedia twice #44
  • Fixes setValueAtTime instead of AudioParam value setter to support the future drop of de-zippering from WebAudio API #41

Don't miss a new sound release

NewReleases is sending notifications on new releases.