fixed: lower cpu usage by calculating the fft less times per second
This commit is contained in:
parent
8aa595e9f7
commit
b129dcc2f8
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ void CBitVis::ProcessAudio()
|
||||||
m_fft.AddSample(m_buf[i]);
|
m_fft.AddSample(m_buf[i]);
|
||||||
m_samplecounter++;
|
m_samplecounter++;
|
||||||
|
|
||||||
if (m_samplecounter % 32 == 0)
|
if (m_samplecounter % 128 == 0)
|
||||||
{
|
{
|
||||||
m_fft.ApplyWindow();
|
m_fft.ApplyWindow();
|
||||||
fftwf_execute(m_fft.m_plan);
|
fftwf_execute(m_fft.m_plan);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue