Layout parameter components manually...Add parameter for input pass through. etc

This commit is contained in:
xenakios
2017-12-22 22:35:02 +02:00
parent 0052c77bbb
commit da6afcf05f
5 changed files with 105 additions and 32 deletions

View File

@ -147,6 +147,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
addParameter(m_outchansparam); // 27
addParameter(new AudioParameterBool("pause_enabled0", "Pause", false)); // 28
addParameter(new AudioParameterFloat("maxcapturelen_0", "Max capture length", 1.0f, 120.0f, 10.0f)); // 29
addParameter(new AudioParameterBool("passthrough0", "Pass input through", false)); // 30
setPreBufferAmount(2);
startTimer(1, 50);
}
@ -176,6 +177,13 @@ void PaulstretchpluginAudioProcessor::setPreBufferAmount(int x)
}
}
int PaulstretchpluginAudioProcessor::getPreBufferAmount()
{
if (m_use_backgroundbuffering == false)
return -1;
return m_prebuffer_amount;
}
//==============================================================================
const String PaulstretchpluginAudioProcessor::getName() const
{