From 1d40af881a9784053942827fec09c5bc198ac315 Mon Sep 17 00:00:00 2001 From: 0xseantasker <0xseantasker@gmail.com> Date: Tue, 3 Sep 2024 21:38:51 +1000 Subject: [PATCH] - Fixed sst calculation of diffuse_cst as per discussion in https://github.com/introlab/odas/issues/276 --- src/module/mod_sst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/mod_sst.c b/src/module/mod_sst.c index 522ce0d..e0f7db1 100644 --- a/src/module/mod_sst.c +++ b/src/module/mod_sst.c @@ -156,7 +156,7 @@ } - diffuse_cst = 1.0f / (4.0f * M_PI * ((float) nPointsActive) / ((float) spatialindexes->nPoints)); + diffuse_cst = (((float)nPointsActive) / (4.0f * M_PI * (float)spatialindexes->nPoints)); points_destroy(points); beampatterns_destroy(beampatterns_mics);