Commit 56df34a4 authored by Marek Szczerba's avatar Marek Szczerba
Browse files

Replacing downmix matrix variable with direct access to the ROM table

parent 4cabb152
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -908,7 +908,11 @@ static void ivas_binaural_obtain_DMX(

            for ( chIdx = 0; chIdx < hBinRenderer->nInChannels; chIdx++ )
            {
#ifdef FIX_1053_REVERB_RECONFIGURATION
                float dmxConst = dmxmtx_table[chOutIdx][chIdx];
#else
                float dmxConst = hBinRenderer->hReverb->dmxmtx[chOutIdx][chIdx];
#endif

                for ( bandIdx = 0; bandIdx < hBinRenderer->conv_band; bandIdx++ )
                {
@@ -1272,6 +1276,7 @@ ivas_error ivas_binRenderer_open(
        {
            return error;
        }
#ifndef FIX_1053_REVERB_RECONFIGURATION
        /* initialize the dmx matrix */
        if ( hBinRenderer->nInChannels != HOA3_CHANNELS )
        {
@@ -1283,6 +1288,7 @@ ivas_error ivas_binRenderer_open(
                }
            }
        }
#endif
    }
    else
    {
+2 −0
Original line number Diff line number Diff line
@@ -485,7 +485,9 @@ typedef struct ivas_binaural_reverb_struct
    uint32_t binRend_RandNext;
    int16_t highestBinauralCoherenceBin;

#ifndef FIX_1053_REVERB_RECONFIGURATION
    float dmxmtx[BINAURAL_CHANNELS][MAX_OUTPUT_CHANNELS];
#endif
    float foa_enc[MAX_OUTPUT_CHANNELS][FOA_CHANNELS];

} REVERB_STRUCT, *REVERB_STRUCT_HANDLE;