Skip to content
Permalink
Browse files
fix for issue 171
  • Loading branch information
hoene committed Oct 18, 2021
1 parent 9268388 commit e846c89c421f123984d2daf011323b1ac39e9d79
Showing with 3 additions and 2 deletions.
  1. +2 −1 CMakeLists.txt
  2. +1 −1 src/hrtf/loudness.c
  3. BIN tests/fail-issue-171.sofa
@@ -87,7 +87,8 @@ if(BUILD_TESTS)
163
167a
167b
168
168
171
)
# issues with osx 96)
add_test(fail-issue-${ISSUE} ${PROJECT_SOURCE_DIR}/tests/notcrashed.sh
@@ -27,7 +27,7 @@ MYSOFA_EXPORT float mysofa_loudness(struct MYSOFA_HRTF *hrtf) {
/*
* find frontal source position
*/
for (i = 0; i < hrtf->SourcePosition.elements; i += hrtf->C) {
for (i = 0; i + 2 < hrtf->SourcePosition.elements; i += hrtf->C) {
c[0] = hrtf->SourcePosition.values[i];
c[1] = hrtf->SourcePosition.values[i + 1];
c[2] = hrtf->SourcePosition.values[i + 2];
Binary file not shown.

0 comments on commit e846c89

Please sign in to comment.