Fixes to reset calls, thanks to Justin Frankel

This commit is contained in:
Chris Cannam
2017-09-26 09:51:22 +01:00
parent 51ef8a63ff
commit 5eb13cb947
4 changed files with 13 additions and 1 deletions

View File

@@ -1033,6 +1033,8 @@ D_Speex::resampleInterleaved(const float *const R__ in,
void
D_Speex::reset()
{
m_lastratio = -1.0; // force reset of ratio
m_initial = true;
speex_resampler_reset_mem(m_resampler);
}