diff options
Diffstat (limited to 'src/resampler.cpp')
-rw-r--r-- | src/resampler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resampler.cpp b/src/resampler.cpp index 978e8a4..2471e10 100644 --- a/src/resampler.cpp +++ b/src/resampler.cpp @@ -36,7 +36,7 @@ namespace audiere { sample_t tmp_r[BUFFER_SIZE]; float delta = m_shift * m_native_sample_rate / m_rate; if (m_shift == 0) { // If shift is zero, which shouldn't be the case, use a shift of 1. - delta = float(m_native_sample_rate / m_rate); + delta = float(m_native_sample_rate) / m_rate; } while (left > 0) { int transfer = std::min(left, int(BUFFER_SIZE)); |