SoundAS icon indicating copy to clipboard operation
SoundAS copied to clipboard

SoundInstance.fadeTo Bug

Open flashawy opened this issue 11 years ago • 1 comments

Assume you have 2 instances of the same sound

var si_1:SoundInstance = SoundAS.getSound("somesfx",true); var si_2:SoundInstance = SoundAS.getSound("somesfx",true);

now if both sounds are playing and you wanted to fade out one of them the SoundInstance.fadeTo method doesn't actually fade that instance .. it calls the SoundManager.addTween with the "type" of sound .. many instances are playing having the same type! .. in this case the addTween method call the getSound() method that throws a stack overflow error .

flashawy avatar May 04 '14 05:05 flashawy

Thanks for the report! I'll try and find some time to dig into this soon.

treefortress avatar May 04 '14 06:05 treefortress