Skip to content
Snippets Groups Projects
Commit 385f1162 authored by interpretivechaos's avatar interpretivechaos
Browse files

Removes updateParameterButtons from AudioNode

Removed the call to updateParameterButtons from audionode, which leads
to crash when adjusting the volume on slider.

The problem is that updateParameterButtons can't be called from any
editor that doesn't use the parameterEditors array. While this can be
fixed by just removing the call from all the processors, ideally there
would be a more robust way to check if it's used. Checking if
parameterEditors.size()==0 seems to catch it some times, but other
times seems to cause a crash. I'm not sure why it doesn't work: the
constructor for Juce Arrays specifies that numUsed should be equal to
zero for an unused Array, and parameterEditors should exist for all
editors that inherit from GenericEditor.
parent e638bea6
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,6 @@ void AudioNode::addInputChannel(GenericProcessor* sourceNode, int chan)
void AudioNode::setParameter(int parameterIndex, float newValue)
{
editor->updateParameterButtons(parameterIndex);
// change left channel, right channel, or volume
if (parameterIndex == 1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment