Commit 0f247365 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1113_CLDFB_REND_IN_ISAR

parent 3b9badc9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -161,7 +161,6 @@

#define FIX_CREND_SIMPLIFY_CODE                         /* Ora : simplify line code in crend */
#define TMP_FIX_1119_SPLIT_RENDERING_VOIP               /* FhG: Add error check for unsupported config: split rendering with VoIP mode */
#define FIX_1113_CLDFB_REND_IN_ISAR                     /* issue 1113: fix the use of CLDFB renderer in split-rendering at the external renderer */

#define FIX_POINT_HRTF_FILE_FORMAT                     /* All: fix point hrtf binary file format */
#ifdef FIX_POINT_HRTF_FILE_FORMAT
+0 −20
Original line number Diff line number Diff line
@@ -1171,11 +1171,7 @@ static void ivas_binaural_obtain_DMX(
            set_zero( outImagRightPtr, CLDFB_NO_CHANNELS_MAX );

/*Ambisonics input requires different processing*/
#ifdef FIX_1113_CLDFB_REND_IN_ISAR
            if ( hBinRenderer->nInChannels == HOA3_CHANNELS )
#else
            if ( hBinRenderer->nInChannels == 16 )
#endif
            {
                float *inRealPtr_W, *inImagPtr_W;
                float *inRealPtr_Y, *inImagPtr_Y;
@@ -1302,7 +1298,6 @@ ivas_error ivas_rend_openCldfbRend(
        return error;
    }

#ifdef FIX_1113_CLDFB_REND_IN_ISAR
    if ( inConfig == IVAS_AUDIO_CONFIG_FOA )
    {
        pCldfbRend->binaural_latency_ns = (int32_t) ( pCldfbRend->hHrtfFastConv->FASTCONV_FOA_latency_s * 1000000000.f );
@@ -1320,9 +1315,6 @@ ivas_error ivas_rend_openCldfbRend(
        /* should never happen for SBA */
        return IVAS_ERR_INVALID_OUTPUT_FORMAT;
    }
#else
    pCldfbRend->binaural_latency_ns = (int32_t) ( FASTCONV_HOA3_latency_s * 1000000000.f );
#endif
    hBinRenderer->hReverb = NULL;
    hBinRenderer->hEFAPdata = NULL;

@@ -1456,27 +1448,15 @@ ivas_error ivas_binRenderer_open(
            }
            else
            {
#ifdef FIX_1113_CLDFB_REND_IN_ISAR
                if ( hBinRenderer->nInChannels == HOA3_CHANNELS )
#else
                if ( hBinRenderer->nInChannels == 16 )
#endif
                {
                    st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_HOA3_latency_s * 1000000000.f );
                }
#ifdef FIX_1113_CLDFB_REND_IN_ISAR
                else if ( hBinRenderer->nInChannels == HOA2_CHANNELS )
#else
                else if ( hBinRenderer->nInChannels == 9 )
#endif
                {
                    st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_HOA2_latency_s * 1000000000.f );
                }
#ifdef FIX_1113_CLDFB_REND_IN_ISAR
                else if ( hBinRenderer->nInChannels == FOA_CHANNELS )
#else
                else if ( hBinRenderer->nInChannels == 4 )
#endif
                {
                    st_ivas->binaural_latency_ns = (int32_t) ( st_ivas->hHrtfFastConv->FASTCONV_FOA_latency_s * 1000000000.f );
                }