Closed vitkuzmenko closed 2 months ago
When audio streaming is enabled, the app was allocating excessive memory.
AVAudioConverter.convert was not freeing allocated memory, leading to a memory leak.
This commit resolves the issue by wrapping the conversion process in an autoreleasepool.
autoreleasepool
Based on this solution: https://stackoverflow.com/questions/75943924/avaudioconverter-buffers-are-over-retained-in-a-dispatchqueue-concurrentperform
Thank you for the PR!! merged
When audio streaming is enabled, the app was allocating excessive memory.
Issue:
AVAudioConverter.convert was not freeing allocated memory, leading to a memory leak.
Solution:
This commit resolves the issue by wrapping the conversion process in an
autoreleasepool
.Based on this solution: https://stackoverflow.com/questions/75943924/avaudioconverter-buffers-are-over-retained-in-a-dispatchqueue-concurrentperform
Before:
After: