shithub: ft²

Download patch

ref: 85f195d02aecd7478bb2b4c3ba689b13a40d7638
parent: bfa135882cef29b577d1c16e34dabce6fe5d9171
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Jan 19 14:49:02 EST 2025

Update ft2_windowed_sinc.c

--- a/src/mixer/ft2_windowed_sinc.c
+++ b/src/mixer/ft2_windowed_sinc.c
@@ -43,8 +43,8 @@
 	}
 	else
 	{
-		x *= cutoff * PI;
-		return (sin(x) / x) * cutoff;
+		x *= PI;
+		return sin(cutoff * x) / x;
 	}
 }
 
--