Skip to content

Releases: pixijs/sound

2.0.0-alpha

21 Jul 18:50
Compare
Choose a tag to compare
2.0.0-alpha Pre-release
Pre-release

Overview

This release adds fallback support for non-WebAudio based browsers (namely IE 9+). This fallback is available using HTML5 <audio> 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

  • Basic fallback support for IE 9+
  • Adds PIXI.sound.useLegacy to force enable use of HTML5 audio
  • Adds TelephoneFilter
  • Support for multiple file-types with glob-like URL string. e.g., resources/music.{mp3,ogg} #26

Changed

  • 💥 breaking change src is now url in the Sound setup options
  • 💥 breaking change PIXI.sound.SoundInstance has moved to PIXI.sound.webaudio.WebAudioInstance
  • Adds PIXI.sound.htmlaudio and PIXI.sound.webaudio which contains the classes for either HTML5 Audio or WebAudio API.
  • Adds PIXI.sound.toggleMuteAll() and PIXI.sound.togglePauseAll() methods
  • Replaces Browserify-based build system with Rollup
  • Speed is now a tweenable property

1.4.2

20 Jun 14:43
Compare
Choose a tag to compare

Fixed

  • Fixes a bug to support iOS 9 #20
  • Converts all examples to ES5 #20
  • Fixes TypeScript build issues introduced with the latest TypeScript & Node typings #20

1.4.1

05 Apr 13:54
Compare
Choose a tag to compare

Fixed

  • Fixes linting issues with new version of TSLint a0c0b2f
  • Fixes Safari issue with SyntaxError in deprecations (thanks @hendrysadrak) #13

1.4.0

27 Feb 16:43
Compare
Choose a tag to compare

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

1.3.1

17 Feb 20:34
Compare
Choose a tag to compare

Changed

  • Updated the internal floss and electron packages used for testing.
  • Minified build now does not include console logs and asserts.
  • Introduced mangling for the minified bundle, to reduce the size under 30KB

Fixed

  • Improved the unlocking detection with iOS (thanks SoundJS!)

Added

  • Adds waveform to sprites examples to visual.

1.3.0

15 Feb 22:47
Compare
Choose a tag to compare

🎁 Added

  • Adds support for defining, load and adding sound sprites.
  • Adds the ability to render a waveform as a BaseTexture with this simple utility: PIXI.sound.utils.render(sound)
  • Fixed example code for Firefox

🚽 Deprecated

  • Removes PIXI.sound.addMap, use PIXI.sound.add method instead.

1.2.0

13 Feb 19:10
Compare
Choose a tag to compare

Overview

Added more play options. Most importantly, added support for playing from start to end time. This functionality will be expanded in the future to support audio sprites. Also, adds support for overriding the default loop and speed per SoundInstance.

const sound = PIXI.sound.Sound.from('foo.mp3');
sound.play({
   speed: 0.5,
   loop: true
});

🐛 Fixed

  • Fixes the progress for looping sounds

🎁 Added

  • Play a sound from start to end with new sound play arguments.
  • Allow play() overrides to set the speed and loop per SoundInstance.
  • Adds m4a to the list of supported audio file extensions.

1.1.1

09 Feb 14:49
Compare
Choose a tag to compare
  • Adds support for unlocking WebAudio on iOS
  • Support StereoFilter for environments without StereoPannerNode (Safari)
  • Fixed mark-up and bugs in examples
  • Renames block to singleInstance
  • Adds PIXI.sound.volumeAll to control global volume

1.1.0

08 Feb 22:00
Compare
Choose a tag to compare

Added

  • Adds Sound.from to create sounds (similar to Texture.from)
  • Adds progress, pause, end, start events to SoundInstance
  • Adds PIXI.sound.duration(alias)
  • Improved the API documentation
  • Adds Sound.speed options for controlling the playback rate.
  • Deprecates PIXI.sound.sound and replaces with PIXI.sound.find
  • Made pixi-sound have a peer dependency of pixi.js instead of optional.
  • Use TypeScript noImplicitAny for building
  • Introduces example for testing
  • Added support for dynamic filters
  • Added check for browser supported: PIXI.sound.supported

1.0.0

03 Feb 18:00
Compare
Choose a tag to compare

Initial release.