Commit 257ec9a9 authored by sagnowski's avatar sagnowski
Browse files

Pass frame_gain by value

parent ebe904dc
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static int16_t detect_strong_saturations(
    int16_t *strong_saturation_cnt, /* i/o: counter of strong saturations   */
    const float max_val,            /* i  : maximum absolute value          */
#ifdef BE_893_SIMPLIFY_STRONG_LIMITING_LOGIC
    const float *frame_gain /* i  : frame gain value                */
    const float frame_gain          /* i  : frame gain value                */
#else
    float *frame_gain /* i/o: frame gain value                */
#endif
@@ -80,7 +80,7 @@ static int16_t detect_strong_saturations(
        return 0;
    }

    return *frame_gain < 0.3f;
    return frame_gain < 0.3f;
#else
    int16_t apply_strong_limiting;

@@ -354,7 +354,7 @@ void limiter_process(
    /* Detection of very strong saturations */
    if ( strong_saturation_cnt != NULL )
    {
        apply_strong_limiting = detect_strong_saturations( BER_detect, strong_saturation_cnt, max_val, &frame_gain );
        apply_strong_limiting = detect_strong_saturations( BER_detect, strong_saturation_cnt, max_val, frame_gain );
    }

#ifdef BE_893_SIMPLIFY_STRONG_LIMITING_LOGIC