Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59a602a6 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "fix: Spurious high frequency on PLC at 48 KHz"

parents dc549a84 3d56676e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -453,6 +453,7 @@ static void synthesize(struct lc3_decoder *decoder,
    enum lc3_srate sr = decoder->sr;
    enum lc3_srate sr_pcm = decoder->sr_pcm;
    int ns = LC3_NS(dt, sr_pcm);
    int ne = LC3_NE(dt, sr);
    int nh = LC3_NH(sr_pcm);

    float *xf = decoder->xs;
@@ -474,6 +475,8 @@ static void synthesize(struct lc3_decoder *decoder,
    } else {
        lc3_plc_synthesize(dt, sr, &decoder->plc, xg, xf);

        memset(xf + ne, 0, (ns - ne) * sizeof(float));

        lc3_mdct_inverse(dt, sr_pcm, sr, xf, xd, xs);
    }