Skip to content

Increasing instance by createjs.Sound.play #260

Open
@SeminYun

Description

@SeminYun

hi.

our game play many sound clips. they have played many times(hundred times) during 1 min and clipped sounds's type are simular. they have 4-10 types and play. So if "fool_left.mp3" play during 1 min. it call 10-100.

i set option like following code

createjs.Sound.registerSound(property.src, property.id, {channels:3}, property.basePath, null);

and play sound like following code:

createjs.Sound.play(id);

it is to reduce play many same sound at same time and it called only 3 times for playing sound that play same time, but instance is created and stacked and it gave me memory leak or like memory leak. memory is growing up calling createjs.Sound.play

so how can i control this?

thx

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