Fetch parameter value differently

This commit is contained in:
xenakios 2018-07-13 21:04:30 +03:00
parent cf553db7fb
commit f67d8cc319

View File

@ -842,7 +842,7 @@ void PaulstretchpluginAudioProcessor::timerCallback(int id)
{
if (id == 1)
{
bool capture = getParameter(cpi_capture_enabled);
bool capture = *getBoolParameter(cpi_capture_enabled);
if (capture == false && m_max_reclen != *getFloatParameter(cpi_max_capture_len))
{
m_max_reclen = *getFloatParameter(cpi_max_capture_len);