Skip to content

Commit

Permalink
- Fixed sst calculation of diffuse_cst as per discussion in introlab#276
Browse files Browse the repository at this point in the history
  • Loading branch information
0xseantasker committed Sep 3, 2024
1 parent bcb8454 commit 1d40af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/mod_sst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d40af8

Please sign in to comment.