Skip to content

Cordova Audio Plugin Bug #206

Open
Open
@AdrianNostromo

Description

@AdrianNostromo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions