diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-12 23:21:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 23:21:43 +0100 |
commit | d11f9f4817c04ad404857757896d28540c6b1f86 (patch) | |
tree | 0feb8c19e10c706092fefef7712293aa6395b520 /servers | |
parent | c96fa0f23e956678d1f2f92932d700d3e3ab1022 (diff) | |
parent | 16b3973c75b6d72ff944bc205b8637554cf9a06d (diff) |
Merge pull request #7746 from sanikoyes/Pr-fix-msvc-compile
Fix msvc compile error
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio/effects/audio_effect_pitch_shift.cpp | 2 | ||||
-rw-r--r-- | servers/audio/effects/eq.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/servers/audio/effects/audio_effect_pitch_shift.cpp b/servers/audio/effects/audio_effect_pitch_shift.cpp index 49a14cda04..8331264208 100644 --- a/servers/audio/effects/audio_effect_pitch_shift.cpp +++ b/servers/audio/effects/audio_effect_pitch_shift.cpp @@ -220,7 +220,7 @@ void SMBPitchShift::smbFft(float *fftBuffer, long fftFrameSize, long sign) *p1 = *p2; *p2 = temp; } } - for (k = 0, le = 2; k < (long)(log(fftFrameSize)/log(2.)+.5); k++) { + for (k = 0, le = 2; k < (long)(log((double)fftFrameSize)/log(2.)+.5); k++) { le <<= 1; le2 = le>>1; ur = 1.0; diff --git a/servers/audio/effects/eq.cpp b/servers/audio/effects/eq.cpp index a6499a66b4..5aab60a558 100644 --- a/servers/audio/effects/eq.cpp +++ b/servers/audio/effects/eq.cpp @@ -47,7 +47,7 @@ EQ::BandProcess::BandProcess() { void EQ::recalculate_band_coefficients() { -#define BAND_LOG( m_f ) ( log((m_f)) / log(2) ) +#define BAND_LOG( m_f ) ( log((m_f)) / log(2.) ) for (int i=0;i<band.size();i++) { |