OOM error creating a buffer
robclouth opened this issue · 2 comments
robclouth commented
Creating a float buffer for analysing a 6 minute track causes an OOM error. Is there any way to increase the maximum memory allowance?
Superpowered.createFloatArray(14684006);
Thanks
robclouth commented
One way could be to process the audio in blocks, but even with creating and destroying the analyzer every block, the waveform output is always the same. Could it be that the analyzer isn't being destroyed properly?
gaborszanto commented
You need to process in chunk, using an iteration. Create the analyzer before the iteration, use it inside the iteration, collect the output of the analyzer after the iteration.