github pixijs/sound v1.4.0
1.4.0

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

Added

  • Adds duration as a second parameter to the progress event. For instance:
PIXI.sound.play('foo').on('progress', (progress, duration) => {
   // duration is the total amount in seconds
   // progress is 0 to 1 the amount of playback
});
  • Adds global filters through the PIXI.sound.filtersAll API. #9
PIXI.sound.filtersAll = [
    new PIXI.sound.filters.ReverbFilter()
];
  • Adds support for an analyser node on the global context PIXI.sound.context.analyser; useful for doing visualizations. #9
  • Adds fadeIn and fadeOut to play options. #10
  • play now returns a Promise for getting the instance being played if the current sound has not been loaded yet. #10

Fixed

  • Play options are now maintained fully if the sound has not been preloaded #10

Deprecated

  • Removes the loaded property of Sound. Use play() or Sound's constructor's loaded option instead. #10
  • Removes the complete property of Sound. Use play() or Sound's constructor's complete option instead. #10

Don't miss a new sound release

NewReleases is sending notifications on new releases.