Releases: pixijs/sound
Releases · pixijs/sound
2.0.0-alpha
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 nowurl
in the Sound setup options - 💥 breaking change
PIXI.sound.SoundInstance
has moved toPIXI.sound.webaudio.WebAudioInstance
- Adds
PIXI.sound.htmlaudio
andPIXI.sound.webaudio
which contains the classes for either HTML5 Audio or WebAudio API. - Adds
PIXI.sound.toggleMuteAll()
andPIXI.sound.togglePauseAll()
methods - Replaces Browserify-based build system with Rollup
- Speed is now a tweenable property
1.4.2
1.4.1
Fixed
- Fixes linting issues with new version of TSLint a0c0b2f
- Fixes Safari issue with SyntaxError in deprecations (thanks @hendrysadrak) #13
1.4.0
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 contextPIXI.sound.context.analyser
; useful for doing visualizations. #9 - Adds
fadeIn
andfadeOut
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
1.3.1
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
🎁 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
, usePIXI.sound.add
method instead.
1.2.0
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
- Adds support for unlocking WebAudio on iOS
- Support StereoFilter for environments without StereoPannerNode (Safari)
- Fixed mark-up and bugs in examples
- Renames
block
tosingleInstance
- Adds
PIXI.sound.volumeAll
to control global volume
1.1.0
Added
- Adds
Sound.from
to create sounds (similar toTexture.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 withPIXI.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
Initial release.