man572142 / Bro_Audio

Designed by Ami
https://assetstore.unity.com/packages/tools/audio/bro-audio-257362
MIT License
30 stars 1 forks source link

Pool problems——Not recycled #5

Closed AcceleratorBpk closed 3 weeks ago

AcceleratorBpk commented 2 months ago

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

AcceleratorBpk commented 2 months ago

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

man572142 commented 2 months ago

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 commented 3 weeks ago

@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! 😃