View | Details | Raw Unified | Return to bug 209333
Collapse All | Expand All

(-)audio/calf/files/patch-src_analyzer.cpp (+17 lines)
Line 0 Link Here
1
--- src/analyzer.cpp.orig	2014-10-14 18:53:15 UTC
2
+++ src/analyzer.cpp
3
@@ -471,12 +471,12 @@ void analyzer::draw(int subindex, float 
4
                                 //pumping up actual signal an erase surrounding
5
                                 // sounds
6
                                 fft_outL[_iter] = 0.25f * std::max(n * 0.6f * \
7
-                                    fabs(fft_outL[_iter]) - var1L , 1e-20);
8
+                                    fabsf(fft_outL[_iter]) - var1L , 1e-20f);
9
                                 if(_mode == 3 or _mode == 4) {
10
                                     // do the same with R channel if needed
11
                                     lastoutR = fft_outR[_iter];
12
                                     fft_outR[_iter] = 0.25f * std::max(n * \
13
-                                        0.6f * fabs(fft_outR[_iter]) - var1R , 1e-20);
14
+                                        0.6f * fabsf(fft_outR[_iter]) - var1R , 1e-20f);
15
                                 }
16
                                 break;
17
                         }
(-)audio/calf/files/patch-src_modules__dist.cpp (+13 lines)
Line 0 Link Here
1
--- src/modules_dist.cpp.orig	2015-03-13 23:00:12 UTC
2
+++ src/modules_dist.cpp
3
@@ -794,8 +794,8 @@ uint32_t tapesimulator_audio_module::pro
4
             lfo2.advance(1);
5
             
6
             // dot
7
-            rms = std::max((double)rms, (fabs(Lo) + fabs(Ro)) / 2);
8
-            input = std::max((double)input, (fabs(Lc) + fabs(Rc)) / 2);
9
+            rms = std::max(rms, (fabsf(Lo) + fabsf(Ro)) / 2);
10
+            input = std::max(input, (fabsf(Lc) + fabsf(Rc)) / 2);
11
             
12
             float values[] = {inL, inR, outs[0][i], outs[1][i]};
13
             meters.process(values);
(-)audio/calf/files/patch-src_modules__limit.cpp (+20 lines)
Line 0 Link Here
1
--- src/modules_limit.cpp.orig	2014-10-14 18:56:24 UTC
2
+++ src/modules_limit.cpp
3
@@ -429,7 +429,7 @@ uint32_t multibandlimiter_audio_module::
4
                 }
5
                 
6
                 // write multiband coefficient to buffer
7
-                buffer[pos] = std::min(*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
8
+                buffer[pos] = std::min(*params[param_limit] / std::max(fabsf(tmpL), fabsf(tmpR)), 1.0f);
9
                 
10
                 // step forward in multiband buffer
11
                 pos = (pos + channels) % buffer_size;
12
@@ -811,7 +811,7 @@ uint32_t sidechainlimiter_audio_module::
13
                 }
14
                 
15
                 // write multiband coefficient to buffer
16
-                buffer[pos] = std::min(*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
17
+                buffer[pos] = std::min(*params[param_limit] / std::max(fabsf(tmpL), fabsf(tmpR)), 1.0f);
18
                 
19
                 // step forward in multiband buffer
20
                 pos = (pos + channels) % buffer_size;

Return to bug 209333