Superpowered Reverb corrupts buffer


I have an audio file which I am processing through a number of Superpowered FX nodes, including the Reverb node.

When I encounter a specific buffer within this audio file (this behavior can be reproduced consistently when this particular buffer is encountered) and run it through my Superpowered Reverb instance, the buffer becomes corrupted and any subsequent calls to the Reverb instance cause corrupted buffers as well.

The code to run the buffer through the Reverb node is pretty simple:

hasAudio |= reverb->process(outputStereoFloatBuffer, outputStereoFloatBuffer, numberOfFrames);

where outputStereoFloatBuffer is a float* and numberOfFrames is a an unsigned int set to 240.

Here is a screenshot of the relevant variable values immediately BEFORE I execute the process call:

enter image description here

And here is a screenshot of the same variable values immediately AFTER I execute the process call:

enter image description here

As you can see, the values inside outputStereoFloatBuffer become corrupted. Any idea why this is happening?

Source: Android Questions

Categorized as android, superpowered


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us