From 1004f17ca724c9eec75720262971c9cf0e44b0d4 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 23 Mar 2025 18:57:40 +0100 Subject: [PATCH] Tweaks. --- sfw/audio/3rd_jo_mp1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfw/audio/3rd_jo_mp1.h b/sfw/audio/3rd_jo_mp1.h index b456bb5..f27f029 100644 --- a/sfw/audio/3rd_jo_mp1.h +++ b/sfw/audio/3rd_jo_mp1.h @@ -16,6 +16,7 @@ #define JO_INCLUDE_MP1_H #include +#include extern bool jo_read_mp1(const void *input, int inputSize, short **output, int *outputSize, int *hz, int *channels); @@ -363,7 +364,7 @@ bool jo_read_mp1(const void *input, int inputSize, short **output_, int *outputS for (int i = 0; i < 32; ++i) { double sum = 0; for (int j = 0; j < 16; ++j) { - int k = i | (j + (j + 1 & -2)) << 5; + int k = i | (j + ((j + 1) & -2)) << 5; sum += *w++ * buf[ch][(k + bufOffset[ch]) & 0x3ff]; } int ss = (int)(sum * 0x8000);