Skip to content

Commit

Permalink
bug fix whereby rotation matrix wouldn't update until sliders were moved
Browse files Browse the repository at this point in the history
  • Loading branch information
leomccormack committed Jan 27, 2024
1 parent 09614cd commit db9cd7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/src/binauraliser/binauraliser.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void binauraliser_setInputConfigPreset(void* const hBin, int newPresetID)
binauraliser_setCodecStatus(hBin, CODEC_STATUS_NOT_INITIALISED);
for(ch=0; ch<MAX_NUM_INPUTS; ch++)
pData->recalc_hrtf_interpFLAG[ch] = 1;
pData->recalc_M_rotFLAG = 1;
}

void binauraliser_setEnableRotation(void* const hBin, int newState)
Expand All @@ -381,6 +382,7 @@ void binauraliser_setEnableRotation(void* const hBin, int newState)
if(!pData->enableRotation)
for (ch = 0; ch<MAX_NUM_INPUTS; ch++)
pData->recalc_hrtf_interpFLAG[ch] = 1;
pData->recalc_M_rotFLAG = 1;
}

void binauraliser_setYaw(void * const hBin, float newYaw)
Expand Down Expand Up @@ -435,6 +437,7 @@ void binauraliser_setRPYflag(void* const hBin, int newState)
{
binauraliser_data *pData = (binauraliser_data*)(hBin);
pData->useRollPitchYawFlag = newState;
pData->recalc_M_rotFLAG = 1;
}

void binauraliser_setInterpMode(void* const hBin, int newMode)
Expand Down

0 comments on commit db9cd7a

Please sign in to comment.