In the provided example SimpleFFTExample there is just a Main window being created with a SpectrogramComponent object being created within it’s constructor. So there is no need for a spectrogramcomponent->start() or something like that.
First I thought: Alright if this is how components work, so that their paint(), getNextAudioBlock() …etc… will get called automaticaly after the components construction …then let’s just try it. But there seems to be more about it and it might have something to do with the deriving of AudioAppComponent. I want to code a plugin, not an standalone app.
In a different topic I found something Jules said about it:
Not 100% sure what you’re asking… But if you’re asking how to take an AudioAppComponent and make it run a plugin, you probably want to use the AudioProcessorPlayer class, which is designed for that kind of purpose.
But I think I have to make the SpectrogramComponent derive from the AudioProcessor class instead of the AudioProcessorPlayer. But thats not all since I need to override paint() as well, which is not a part of the AudioProcessor component.
I’m not really sure how to approach this and if said component is the right one and which one I need for the paint override… can anyone help me out?