diff options
Diffstat (limited to 'core/converter.cpp')
-rw-r--r-- | core/converter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/converter.cpp b/core/converter.cpp index 6a06b464..f4c36c87 100644 --- a/core/converter.cpp +++ b/core/converter.cpp @@ -167,8 +167,13 @@ SampleConverterPtr CreateSampleConverter(DevFmtType srcType, DevFmtType dstType, converter->mSrcTypeSize = BytesFromDevFmt(srcType); converter->mDstTypeSize = BytesFromDevFmt(dstType); - converter->mSrcPrepCount = 0; + converter->mSrcPrepCount = MaxResamplerEdge; converter->mFracOffset = 0; + for(auto &chan : converter->mChan) + { + const al::span<float> buffer{chan.PrevSamples}; + std::fill(buffer.begin(), buffer.end(), 0.0f); + } /* Have to set the mixer FPU mode since that's what the resampler code expects. */ FPUCtl mixer_mode{}; |