fixed: lower cpu usage by calculating the fft less times per second

This commit is contained in:
Bob van Loosen 2013-03-26 22:00:16 +01:00
parent 8aa595e9f7
commit b129dcc2f8

View file

@ -358,7 +358,7 @@ void CBitVis::ProcessAudio()
m_fft.AddSample(m_buf[i]);
m_samplecounter++;
if (m_samplecounter % 32 == 0)
if (m_samplecounter % 128 == 0)
{
m_fft.ApplyWindow();
fftwf_execute(m_fft.m_plan);