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);
outputStereoFloatBuffer is a
numberOfFrames is a an
unsigned int set to 240.
Here is a screenshot of the relevant variable values immediately BEFORE I execute the
And here is a screenshot of the same variable values immediately AFTER I execute the
As you can see, the values inside
outputStereoFloatBuffer become corrupted. Any idea why this is happening?
Source: Android Questions