diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-04 18:57:50 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-04 18:57:50 +0200 |
commit | e21884ad871f52bcd02fc492084bade3dfab275a (patch) | |
tree | 2a97768de2fc19ec680f5fbeeccc88163f2aa397 /src/Resampler.cpp | |
parent | ecf405846aec3ce7455f68379d86d6888b135c50 (diff) | |
download | dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.gz dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.bz2 dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.zip |
Actually enable the new warnings for C++
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 8786e91..8069a61 100644 --- a/src/Resampler.cpp +++ b/src/Resampler.cpp @@ -83,7 +83,7 @@ Resampler::Resampler(size_t inputRate, size_t outputRate, size_t resolution) : myWindow = (float*)memalign(16, myFftSizeIn * sizeof(float)); for (size_t i = 0; i < myFftSizeIn; ++i) { - myWindow[i] = 0.5f * (1.0f - cosf(2.0f * M_PI * i / (myFftSizeIn - 1))); + myWindow[i] = (float)(0.5 * (1.0 - cos(2.0 * M_PI * i / (myFftSizeIn - 1)))); PDEBUG("Window[%zu] = %f\n", i, myWindow[i]); } |