Merge remote-tracking branch 'origin/audioreactive-prototype' into audio-reactive
This commit is contained in:
@@ -440,7 +440,10 @@ void FFTcode(void * parameter)
|
|||||||
autoResetPeak();
|
autoResetPeak();
|
||||||
detectSamplePeak();
|
detectSamplePeak();
|
||||||
|
|
||||||
vTaskDelayUntil( &xLastWakeTime, xFrequency); // release CPU, and let I2S fill its buffers
|
#if !defined(I2S_GRAB_ADC1_COMPLETELY)
|
||||||
|
if ((audioSource == nullptr) || (audioSource->getType() != AudioSource::Type_I2SAdc)) // the "delay trick" does not help for analog ADC
|
||||||
|
#endif
|
||||||
|
vTaskDelayUntil( &xLastWakeTime, xFrequency); // release CPU, and let I2S fill its buffers
|
||||||
|
|
||||||
} // for(;;)ever
|
} // for(;;)ever
|
||||||
} // FFTcode() task end
|
} // FFTcode() task end
|
||||||
|
|||||||
Reference in New Issue
Block a user