I'm trying to analyse blocks of audio periodically (say every 500ms), then save or display the results. I tried the following, but my host crashes when the timerCallback() function executes...
1. Declare float* channelData as a public member of the PluginProcessor.
2. Update channelData each time processBlock executes.
3. In the PluginEditor set up a timerCallback which uses *ourProcessor = getProcessor() to access the processor.
4. Copy the ourProcessor->channelData variable to the timerCallback function and then run some analysis on it in the PluginEditor.
I've been looking for tutorials and GUI update posts, but I haven't had much luck. Can anyone give me any advice on where I'm going wrong?