I have seen MixChannel.hx has a finished property to check if a track is finished but I'd like to delete an channel as soon as it's finished playing, something like play(destroyOnFinished: bool = true) or soundChannel.onFinished(?callback:Void), instead of checking soundChannel.finished each frame. Is it possible to do this with the current version of Aura or does it need to be implemented?
For context, I'm trying to implement randomized 'steps foley' sounds and uncommented the bit of code in line 113 if (inputChannels[i] == null || inputChannels[i].finished) from MixChannel.hx for a temporary solution.
I have seen
MixChannel.hxhas afinishedproperty to check if a track is finished but I'd like to delete an channel as soon as it's finished playing, something likeplay(destroyOnFinished: bool = true)orsoundChannel.onFinished(?callback:Void), instead of checkingsoundChannel.finishedeach frame. Is it possible to do this with the current version of Aura or does it need to be implemented?For context, I'm trying to implement randomized 'steps foley' sounds and uncommented the bit of code in line 113
if (inputChannels[i] == null || inputChannels[i].finished)fromMixChannel.hxfor a temporary solution.