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

update leftover MAX_TRANSPORT_CHANNELS, reduce the size of a binaural tmp buffer

parent 6ca53293
Loading
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1037,7 +1037,11 @@ ivas_error ivas_crend_process(
{
    int16_t i, nchan_out, output_frame;
    int16_t subframe_len, subframe_idx;
#ifdef EXT_RENDERER
    float pcm_tmp[BINAURAL_CHANNELS][L_FRAME48k];
#else
    float pcm_tmp[MAX_TRANSPORT_CHANNELS][L_FRAME48k];
#endif
    AUDIO_CONFIG intern_config;
    ivas_error error;

@@ -1171,7 +1175,7 @@ ivas_error ivas_rend_openCrend(

    hCrend->lfe_delay_line = NULL;

    for ( i = 0; i < MAX_TRANSPORT_CHANNELS; i++ )
    for ( i = 0; i < MAX_INTERN_CHANNELS; i++ )
    {
        hCrend->freq_buffer_re[i] = NULL;
        hCrend->freq_buffer_im[i] = NULL;
@@ -1699,7 +1703,7 @@ ivas_error ivas_rend_closeCrend(
    if ( pCrend->hCrend != NULL )
    {

        for ( i = 0; i < MAX_TRANSPORT_CHANNELS; i++ )
        for ( i = 0; i < MAX_INTERN_CHANNELS; i++ )
        {
            if ( pCrend->hCrend->freq_buffer_re[i] != NULL )
            {
@@ -1770,7 +1774,7 @@ ivas_error ivas_rend_crendProcess(
{
    int16_t i, subframe_idx, output_frame;
    int32_t nchan_out;
    float pcm_tmp[MAX_TRANSPORT_CHANNELS][L_FRAME48k];
    float pcm_tmp[BINAURAL_CHANNELS][L_FRAME48k];
    AUDIO_CONFIG in_config;
    IVAS_REND_AudioConfigType inConfigType;
    ivas_error error;