Commit b3b3510f authored by emerit's avatar emerit
Browse files

change reverb param fx from word32 to word16

parent 15c6cf4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1467,10 +1467,10 @@ void ivas_rend_closeCrend(
)
{
    int16_t i;
    CREND_HANDLE hCrend;
#ifdef SPLIT_REND_WITH_HEAD_ROT
    int16_t pos_idx;
#endif
    CREND_HANDLE hCrend;

    if ( pCrend == NULL || *pCrend == NULL )
    {
+198 −198

File changed.

Preview size limit exceeded, changes collapsed.

+13 −6
Original line number Diff line number Diff line
@@ -476,6 +476,7 @@ static ivas_error load_reverb_from_binary(
    int16_t is_fx = 0;
    int16_t ind;
    Word16 factorQ;
    Word16 tmp16;
    float factorQ_f;
#endif

@@ -559,14 +560,20 @@ static ivas_error load_reverb_from_binary(
        {
            fread( &factorQ, sizeof( Word16 ), 1, f_hrtf );
            factorQ_f = powf( 2.f, -1.f * (float) factorQ );
            fread( hHrtfStatistics->average_energy_l, sizeof( Word32 ), lr_iac_len, f_hrtf );
            fread( hHrtfStatistics->average_energy_r, sizeof( Word32 ), lr_iac_len, f_hrtf );
            fread( hHrtfStatistics->inter_aural_coherence, sizeof( Word32 ), lr_iac_len, f_hrtf );
            for ( ind = 0; ind < lr_iac_len; ind++ )
            {
                hHrtfStatistics->average_energy_l[ind] = factorQ_f * (float) ( ( (Word32 *) hHrtfStatistics->average_energy_l )[ind] );
                hHrtfStatistics->average_energy_r[ind] = factorQ_f * (float) ( ( (Word32 *) hHrtfStatistics->average_energy_r )[ind] );
                hHrtfStatistics->inter_aural_coherence[ind] = factorQ_f * (float) ( ( (Word32 *) hHrtfStatistics->inter_aural_coherence )[ind] );
                fread( &tmp16, sizeof( Word16 ), 1, f_hrtf );
                hHrtfStatistics->average_energy_l[ind] = factorQ_f * (float) tmp16;
            }
            for ( ind = 0; ind < lr_iac_len; ind++ )
            {
                fread( &tmp16, sizeof( Word16 ), 1, f_hrtf );
                hHrtfStatistics->average_energy_r[ind] = factorQ_f * (float) tmp16;
            }
            for ( ind = 0; ind < lr_iac_len; ind++ )
            {
                fread( &tmp16, sizeof( Word16 ), 1, f_hrtf );
                hHrtfStatistics->inter_aural_coherence[ind] = factorQ_f * (float) tmp16;
            }
        }
        else
Loading