diff options
author | andreas128 <Andreas> | 2017-04-01 10:17:06 +0100 |
---|---|---|
committer | andreas128 <Andreas> | 2017-04-01 10:17:06 +0100 |
commit | 6243a4fac50a9c8690e13c2df65c058e69fdcae5 (patch) | |
tree | 8e562b11f06a782974bd4d34b2f58005a3903fda /src/Resampler.cpp | |
parent | fce4eab342a5e4bfad01c5f7e704ece35bd718bc (diff) | |
parent | 8a5b4f23dec7d22e4f2e38cb7ef7223438461df8 (diff) | |
download | dabmod-6243a4fac50a9c8690e13c2df65c058e69fdcae5.tar.gz dabmod-6243a4fac50a9c8690e13c2df65c058e69fdcae5.tar.bz2 dabmod-6243a4fac50a9c8690e13c2df65c058e69fdcae5.zip |
Merge branch 'next' into next_memless
Diffstat (limited to 'src/Resampler.cpp')
-rw-r--r-- | src/Resampler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Resampler.cpp b/src/Resampler.cpp index ee2b865..8786e91 100644 --- a/src/Resampler.cpp +++ b/src/Resampler.cpp @@ -76,9 +76,9 @@ Resampler::Resampler(size_t inputRate, size_t outputRate, size_t resolution) : PDEBUG(" FFT size in: %zu, FFT size out: %zu\n", myFftSizeIn, myFftSizeOut); if (myFftSizeIn > myFftSizeOut) { - myFactor = 1.0f / myFftSizeIn; + myFactor = 1.0f / myFftSizeIn * outputRate / inputRate; } else { - myFactor = 1.0f / myFftSizeOut; + myFactor = 1.0f / myFftSizeOut * outputRate / inputRate; } myWindow = (float*)memalign(16, myFftSizeIn * sizeof(float)); |