Bro_Audio icon indicating copy to clipboard operation
Bro_Audio copied to clipboard

Pool problems——Not recycled

Open AcceleratorBpk opened this issue 1 year ago • 2 comments

Play SFX continuously and only recycle the latest generated instances. Old instances will always stay in the scene and occupy a track.

AcceleratorBpk avatar Aug 26 '24 17:08 AcceleratorBpk

Supplementary, this situation will only occur if multiple different SFX are played sequentially for a long time

AcceleratorBpk avatar Aug 26 '24 17:08 AcceleratorBpk

Thanks for the report! Sorry I'm not quite sure I follow the situation of the issue. Could you provide more details of your setup? like a screenshot of the sound in LibraryManager and the code or component that plays it. thank you!

man572142 avatar Aug 31 '24 06:08 man572142

@AcceleratorBpk Hi! I received another report that I believe might be the same issue as this one.

The problem was that AudioSource.timeSample didn’t reset to 0 or stay on the last sample as expected, causing the audio player to never stop playing and recycle properly due to the incorrect endpoint calculation.

This issue has been addressed in the latest update. Would you mind checking again to see if the problem is resolved? Much appreciated! 😃

man572142 avatar Oct 15 '24 01:10 man572142