Closed Marukohe closed 1 year ago
Hi,
If the processing power is not able to process audio in realtime as it is not a bounded queue this would raise this kind of issues. Maybe you have to find a way to increase the performance of your emulator using hardware instead of software.
@nicolas-f All right, maybe that's the problem. Thanks for your answer.
Is there any underlying issue that might trigger OutOfMemory?
In
AudioProcess
class, one thread is used to collect audios, and save the results in aConcurrentLinkedQueue
bufferToProcess. Also, there are two thread process audios in bufferToProcess, and remove audio values stored in bufferToProcess. But in the following picture, bufferToProcess stores too much values. I tried but could't find why this happens.Device: Android Emulator, Pixel XL Api Version: API 28