Calculate disk sample read count. Increase disk read cache 4x.

This commit is contained in:
xenakios
2018-05-19 15:03:30 +03:00
parent 021944dc37
commit eabcd891b3
5 changed files with 15 additions and 4 deletions

View File

@ -65,6 +65,13 @@ bool StretchAudioSource::isResampling()
return (int)m_outsr!=m_inputfile->info.samplerate;
}
int64_t StretchAudioSource::getDiskReadSampleCount() const
{
if (m_inputfile == nullptr)
return 0;
return m_inputfile->getDiskReadSampleCount();
}
std::vector<SpectrumProcess> StretchAudioSource::getSpectrumProcessOrder()
{
return m_specproc_order;