Commit 3e9404da authored by vaclav's avatar vaclav
Browse files

fix SR

parent 162c3909
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -309,6 +309,9 @@ ivas_error ivas_td_binaural_renderer_sf_splitBinaural(
    int16_t original_subframes_rendered;
    int16_t original_slots_rendered;
    float *p_bin_output[BINAURAL_CHANNELS];
#ifdef NONBE_UNIFIED_DECODING_PATHS_FIX
    float output_local[MAX_OUTPUT_CHANNELS][L_FRAME48k]; // VE2SB: TBV
#endif

    push_wmops( "ivas_td_binaural_renderer_sf_splitBinaural" );
    pMultiBinPoseData = &st_ivas->hSplitBinRend.splitrend.multiBinPoseData;
@@ -378,7 +381,11 @@ ivas_error ivas_td_binaural_renderer_sf_splitBinaural(
        /* set output channels */
        for ( i = 0; i < BINAURAL_CHANNELS; i++ )
        {
#ifdef NONBE_UNIFIED_DECODING_PATHS_FIX
            p_bin_output[i] = output_local[pos_idx * BINAURAL_CHANNELS + i];
#else
            p_bin_output[i] = output[pos_idx * BINAURAL_CHANNELS + i];
#endif
        }
        st_ivas->hTcBuffer->subframes_rendered = original_subframes_rendered;
        st_ivas->hTcBuffer->slots_rendered = original_slots_rendered;
@@ -398,6 +405,12 @@ ivas_error ivas_td_binaural_renderer_sf_splitBinaural(
        }
    }

#ifdef NONBE_UNIFIED_DECODING_PATHS_FIX
    for ( i = 0; i < pMultiBinPoseData->num_poses * BINAURAL_CHANNELS; i++ )
    {
        mvr2r( output_local[i], output[i], nSamplesRendered );
    }
#endif

    /* Restore original head rotation */
    for ( i = 0; i < st_ivas->hCombinedOrientationData->num_subframes; ++i )