Commit e5eac0dc authored by Lauros Pajunen's avatar Lauros Pajunen
Browse files

Move initialization inside switch, run clang format

parent 207525b4
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -4627,13 +4627,13 @@ static ivas_error renderIsmToBinauralRoom(
    pan_vector previousPanGains;
    IVAS_REND_AudioBuffer tmpMcBuffer;
    IVAS_REND_AudioObjectPosition rotatedPos;
    const IVAS_REND_HeadRotData *headRotData;
#ifdef EXTERNAL_ORIENTATIONS
    const COMBINED_ORIENTATION_HANDLE *hCombinedOrientationData;
    int8_t combinedOrientationEnabled;
    int16_t j;
#else
    IVAS_QUATERNION quat;
    const IVAS_REND_HeadRotData *headRotData;
#endif
#ifdef JBM_TSM_ON_TCS
    float *p_tmpRendBuffer[MAX_OUTPUT_CHANNELS];
@@ -4646,7 +4646,6 @@ static ivas_error renderIsmToBinauralRoom(

    push_wmops( "renderIsmToBinauralRoom" );

    headRotData = ismInput->base.ctx.pHeadRotData;
    rotatedPos = defaultObjectPosition();

#ifdef EXTERNAL_ORIENTATIONS
@@ -4663,6 +4662,8 @@ static ivas_error renderIsmToBinauralRoom(
            }
        }
    }
#else
    headRotData = ismInput->base.ctx.pHeadRotData;
#endif

    if ( ismInput->hReverb != NULL && ismInput->hReverb->pConfig.roomAcoustics.use_brir == 0 && ismInput->hReverb->pConfig.roomAcoustics.late_reverb_on == 1 &&