Commit ea45d607 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] request correct number of subframes from crend/tdrend

parent e65102f8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -733,6 +733,9 @@ ivas_error ivas_td_binaural_renderer_ext(
    const REVERB_HANDLE hReverb,                                 /* i  : Reverberator handle               */
#ifdef FIX_488_SYNC_DELAY
    const int16_t ism_md_subframe_update_ext, /* i: Metadata Delay in subframes to sync with audio delay */
#endif
#ifdef API_5MS
    const int32_t output_Fs, /* i  : output sampling rate                 */
#endif
    const int16_t output_frame, /* i  : output frame length               */
    float output[][L_FRAME48k]  /* i/o: SCE channels / Binaural synthesis */
@@ -811,7 +814,7 @@ ivas_error ivas_td_binaural_renderer_ext(
                                                     ism_md_subframe_update_ext, p_output, output_frame
#ifdef API_5MS
                                                     ,
                                                     ( output_frame == L_FRAME48k ) ? 4 : 1
                                                     ( output_frame * FRAMES_PER_SEC ) / output_Fs
#endif
                                                     ) ) != IVAS_ERR_OK )
    {
+12 −9
Original line number Diff line number Diff line
@@ -590,6 +590,9 @@ ivas_error ivas_td_binaural_renderer_ext(
    const REVERB_HANDLE hReverb,                                    /* i  : Reverberator handle                                     */
#ifdef FIX_488_SYNC_DELAY
    const int16_t ism_md_subframe_update_ext,                       /* i  : Metadata Delay in subframes to sync with audio delay    */
#endif
#ifdef API_5MS
    const int32_t output_Fs,                                        /* i  : output sampling rate                                    */
#endif
    const int16_t output_frame,                                     /* i  : output frame length                                     */
    float output[][L_FRAME48k]                                      /* i/o: SCE channels / Binaural synthesis                       */
+20 −2
Original line number Diff line number Diff line
@@ -6181,6 +6181,9 @@ static ivas_error renderIsmToBinaural(
                                                  ismInput->hReverb,
#ifdef FIX_488_SYNC_DELAY
                                                  ism_md_subframe_update_ext,
#endif
#ifdef API_5MS
                                                  *ismInput->base.ctx.pOutSampleRate,
#endif
                                                  outAudio.config.numSamplesPerChannel,
                                                  tmpTDRendBuffer ) ) != IVAS_ERR_OK )
@@ -6407,6 +6410,9 @@ static ivas_error renderIsmToBinauralReverb(
                                                  ismInput->hReverb,
#ifdef FIX_488_SYNC_DELAY
                                                  ism_md_subframe_update_ext,
#endif
#ifdef API_5MS
                                                  *ismInput->base.ctx.pOutSampleRate,
#endif
                                                  outAudio.config.numSamplesPerChannel,
                                                  tmpRendBuffer ) ) != IVAS_ERR_OK )
@@ -6653,6 +6659,9 @@ static ivas_error renderIsmToSplitBinaural(
                                               NULL,
#ifdef FIX_488_SYNC_DELAY
                                               ism_md_subframe_update_ext,
#endif
#ifdef API_5MS
                                               *ismInput->base.ctx.pOutSampleRate,
#endif
                                               output_frame,
                                               tmpProcessing );
@@ -6983,6 +6992,9 @@ static ivas_error renderMcToBinaural(
                                                      mcInput->hReverb,
#ifdef FIX_488_SYNC_DELAY
                                                      0,
#endif
#ifdef API_5MS
                                                      *mcInput->base.ctx.pOutSampleRate,
#endif
                                                      mcInput->base.inputBuffer.config.numSamplesPerChannel, tmpRendBuffer ) ) != IVAS_ERR_OK )
        {
@@ -7115,6 +7127,9 @@ static ivas_error renderMcToBinauralRoom(
                                                      NULL, mcInput->hReverb,
#ifdef FIX_488_SYNC_DELAY
                                                      0,
#endif
#ifdef API_5MS
                                                      *mcInput->base.ctx.pOutSampleRate,
#endif
                                                      mcInput->base.inputBuffer.config.numSamplesPerChannel, tmpRendBuffer ) ) != IVAS_ERR_OK )
        {
@@ -7503,6 +7518,9 @@ static ivas_error renderMcToSplitBinaural(
                                                          mcInput->hReverb,
#ifdef FIX_488_SYNC_DELAY
                                                          0, /* Ism Audio Metadata Delay Sync in ms for External Renderer */
#endif
#ifdef API_5MS
                                                          *mcInput->base.ctx.pOutSampleRate,
#endif
                                                          mcInput->base.inputBuffer.config.numSamplesPerChannel,
                                                          tmpRendBuffer ) ) != IVAS_ERR_OK )
@@ -8219,7 +8237,7 @@ static ivas_error renderSbaToMultiBinaural(
                                               p_tmpCrendBuffer,
                                               *sbaInput->base.ctx.pOutSampleRate,
#ifdef API_5MS
                                               4,
                                               ( sbaInput->base.inputBuffer.config.numSamplesPerChannel * FRAMES_PER_SEC ) / *sbaInput->base.ctx.pOutSampleRate,
#endif
                                               pos_idx ) ) != IVAS_ERR_OK )
        {