We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c1361a + 97187b7 commit a55d1d9Copy full SHA for a55d1d9
core/src/dsp/types.h
@@ -82,7 +82,7 @@ namespace dsp {
82
83
inline float fastAmplitude() {
84
float re_abs = fabsf(re);
85
- float im_abs = fabsf(re);
+ float im_abs = fabsf(im);
86
if (re_abs > im_abs) { return re_abs + 0.4f * im_abs; }
87
return im_abs + 0.4f * re_abs;
88
}
@@ -125,4 +125,4 @@ namespace dsp {
125
float l;
126
float r;
127
};
128
-}
+}
0 commit comments