Skip to content

Commit

Permalink
ActiveAE: Align VizBuffer size with sink's max delay
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and fritsch committed Nov 12, 2019
1 parent d0c9c0a commit 82eb2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -1381,12 +1381,12 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)

// input buffers
m_vizBuffersInput = new CActiveAEBufferPool(m_internalFormat);
m_vizBuffersInput->Create(2000);
m_vizBuffersInput->Create(2000 + m_stats.GetMaxDelay() * 1000);

// resample buffers
m_vizBuffers = new CActiveAEBufferPoolResample(m_internalFormat, vizFormat, m_settings.resampleQuality);
//! @todo use cache of sync + water level
m_vizBuffers->Create(2000, false, false);
m_vizBuffers->Create(2000 + m_stats.GetMaxDelay() * 1000, false, false);
m_vizInitialized = false;
}
}
Expand Down

0 comments on commit 82eb2b5

Please sign in to comment.