Make WDL resampler initial buffer size optional

This commit is contained in:
xenakios
2018-10-26 20:38:28 +03:00
parent 1b9256ede0
commit bdcb268508
3 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ StretchAudioSource::StretchAudioSource(int initialnumoutchans,
AudioFormatManager* afm,
std::array<AudioParameterBool*,9>& enab_pars) : m_afm(afm)
{
m_resampler = std::make_unique<WDL_Resampler>();
m_resampler = std::make_unique<WDL_Resampler>(4*65536);
m_resampler_outbuf.resize(1024*1024);
m_inputfile = std::make_unique<AInputS>(m_afm);
for (int i = 0; i < enab_pars.size(); ++i)