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

Commit 3d56676e authored by Antoine SOULIER's avatar Antoine SOULIER Committed by Jakub Pawłowski
Browse files

fix: Spurious high frequency on PLC at 48 KHz

Bug: 227756301
Change-Id: I999a8518aafd37549cf6b69ed36815318b82f1f9
parent 30526255
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);
    }