Skip to content

Commit db9cd7a

Browse files
committed
bug fix whereby rotation matrix wouldn't update until sliders were moved
1 parent 09614cd commit db9cd7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/src/binauraliser/binauraliser.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ void binauraliser_setInputConfigPreset(void* const hBin, int newPresetID)
370370
binauraliser_setCodecStatus(hBin, CODEC_STATUS_NOT_INITIALISED);
371371
for(ch=0; ch<MAX_NUM_INPUTS; ch++)
372372
pData->recalc_hrtf_interpFLAG[ch] = 1;
373+
pData->recalc_M_rotFLAG = 1;
373374
}
374375

375376
void binauraliser_setEnableRotation(void* const hBin, int newState)
@@ -381,6 +382,7 @@ void binauraliser_setEnableRotation(void* const hBin, int newState)
381382
if(!pData->enableRotation)
382383
for (ch = 0; ch<MAX_NUM_INPUTS; ch++)
383384
pData->recalc_hrtf_interpFLAG[ch] = 1;
385+
pData->recalc_M_rotFLAG = 1;
384386
}
385387

386388
void binauraliser_setYaw(void * const hBin, float newYaw)
@@ -435,6 +437,7 @@ void binauraliser_setRPYflag(void* const hBin, int newState)
435437
{
436438
binauraliser_data *pData = (binauraliser_data*)(hBin);
437439
pData->useRollPitchYawFlag = newState;
440+
pData->recalc_M_rotFLAG = 1;
438441
}
439442

440443
void binauraliser_setInterpMode(void* const hBin, int newMode)

0 commit comments

Comments
 (0)