CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.44k stars 835 forks source link

Cordova Audio Plugin Bug #206

Open AdrianNostromo opened 9 years ago

AdrianNostromo commented 9 years ago

The function p.destroy = function() {

Original:

this.AbstractSoundInstance_destroy();
this._playbackResource.release();

Should be:

this._playbackResource.release();
this.AbstractSoundInstance_destroy();

Reason: The function AbstractSoundInstance_destroy makes the variable this._playbackResource null, and we get a can't access function release from null object error. This doesn't free up the sound so eventually (after 27 sounds started on android and cordova) no more sounds will be played.

marfire commented 8 years ago

I can confirm that this is a bug.