Clean up parameter components initing
This commit is contained in:
parent
fbd337bf5d
commit
64ad16f8cb
@ -48,16 +48,11 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (Pa
|
|||||||
{
|
{
|
||||||
AudioProcessorParameterWithID* parid = dynamic_cast<AudioProcessorParameterWithID*>(pars[i]);
|
AudioProcessorParameterWithID* parid = dynamic_cast<AudioProcessorParameterWithID*>(pars[i]);
|
||||||
jassert(parid);
|
jassert(parid);
|
||||||
if (parid)
|
bool notifyonlyonrelease = false;
|
||||||
{
|
if (parid->paramID.startsWith("fftsize") || parid->paramID.startsWith("numoutchans"))
|
||||||
bool notifyonlyonrelease = false;
|
notifyonlyonrelease = true;
|
||||||
if (parid->paramID.startsWith("fftsize"))
|
m_parcomps.push_back(std::make_shared<ParameterComponent>(pars[i],notifyonlyonrelease));
|
||||||
notifyonlyonrelease = true;
|
addAndMakeVisible(m_parcomps.back().get());
|
||||||
if (parid->paramID.startsWith("numoutchans"))
|
|
||||||
notifyonlyonrelease = true;
|
|
||||||
m_parcomps.push_back(std::make_shared<ParameterComponent>(pars[i],notifyonlyonrelease));
|
|
||||||
addAndMakeVisible(m_parcomps.back().get());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//addAndMakeVisible(&m_specvis);
|
//addAndMakeVisible(&m_specvis);
|
||||||
|
Loading…
Reference in New Issue
Block a user