I’m putting the finishing touches on a compressor that I’ve been working on and I wanted to have a component that lets you view the incoming buffer to the compressor. That being said, I figured a quick and easy solution would be to use the AudioVisualiserComponent class.
That being said, I implemented it in the following way.
ScopedPointer<AudioVisualiserComponent> audioView; audioView->setNumChannels(2); audioView->setColours(Colours::transparentWhite, Colours::dimgrey); audioView->setRepaintRate(30); audioView->pushBuffer(processor.visualizeBuffer); // Copy of the processBlock buffer addAndMakeVisible(audioView); audioView->setBounds(200, 400, (getWidth() / 4) + 50, 300);
The project builds so I thought it was as simple as the JUCE docs say. However, when I go to test the plugin using the Plugin host, the program crashes. Usually, this is the case if I forget to addAndMakeVisible or have some threading issue but I don’t quite know where to go from here. I have been working at this for an embarrassingly long amount of time and would appreciate any guidance.
I appreciate anyone’s time.