Using an available example, I have made a project generate a binary log file that should contain a log of all the 8 analog inputs. The line that writes the data is this:
gFile1.log (& (context->analogIn[gI1 * context->analogFrames]), 8);
I need to be able to have the render function read and use these stored values as an alternative to the analog inputs.
For the playing of long audio files, I used a double buffering scheme from another example that runs a fillBuffer function from an auxiliary thread. Is something similar needed for accessing the logged data from the render function?
I looked at the example here:
https://forum.bela.io/d/719-store-presets-as-file
But I'm not sure how to get from what this example shows to what I'm trying to do, which is read the log file from the render function and use that data as if it is real time input from the analog ins. Do you happen to know, is there a better example some where I could be looking at? Thanks.