diff options
Diffstat (limited to 'core/converter.h')
-rw-r--r-- | core/converter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/converter.h b/core/converter.h index b6ff3ba5..01becea2 100644 --- a/core/converter.h +++ b/core/converter.h @@ -41,7 +41,7 @@ struct SampleConverter { using SampleOffset = std::chrono::duration<int64_t, std::ratio<1,MixerFracOne>>; SampleOffset currentInputDelay() const noexcept { - const int64_t prep{mSrcPrepCount - MaxResamplerEdge}; + const int64_t prep{int64_t{mSrcPrepCount} - MaxResamplerEdge}; return SampleOffset{(prep<<MixerFracBits) + mFracOffset}; } |