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