My goal is to have an array that is some power of two in size so I can run it through an FFT algorithm. I would like to delete the array when I delete the plugin. I tried overriding the destructor of the IPlugProcessor to also delete the array, but I get an error because the other variables are inaccessible (mChannelData and mIOConfigs). Why does this happen? is there a keyword I am missing?
Alternatively, is there a better way to do FFT processing? I’m new to audio programming so bear with me
// updated destructor
MyPlugin::~MyPlugin()
{
TRACE
delete[] array;
mChannelData[ERoute::kInput].Empty(true);
mChannelData[ERoute::kOutput].Empty(true);
mIOConfigs.Empty(true);
// ^^ each of these three give errors
}