I am developing an audio plug-in where I learn some parameters from the audio in an array.
The trouble is when pausing and playing in a DAW (Reaper in this case). It seems to call prepareToPlay everytime I start playback hence, reinitializing all my arrays and losing all the info I have learnt.
How would you suggest tackling this issue?
Since the issue is happening only in the DAW, debugging is not the sweetest process, so I though I will ask here to hear any opinions.
Of course I can post code if needed.
Thanks in advance,