You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AudioConvert_F32.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ class AudioConvert_I16toF32 : public AudioStream_F32 //receive Int and transmits
36
36
37
37
staticvoidconvertAudio_I16toF32(audio_block_t *in, audio_block_f32_t *out, int len) {
38
38
//WEA Method. Should look at CMSIS arm_q15_to_float instead: https://www.keil.com/pack/doc/CMSIS/DSP/html/group__q15__to__x.html#gaf8b0d2324de273fc430b0e61ad4e9eb2
39
-
constfloat MAX_INT = 32678.0;
39
+
constfloat MAX_INT = 32768.0;
40
40
for (int i = 0; i < len; i++) out->data[i] = (float)(in->data[i]);
41
41
arm_scale_f32(out->data, 1.0/MAX_INT, out->data, out->length); //divide by 32678 to get -1.0 to +1.0
0 commit comments