You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
The text was updated successfully, but these errors were encountered:
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 .
The text was updated successfully, but these errors were encountered: