From ff4d12b169aa6d8c35ab0294fa27363dd9d52dc5 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 17 Feb 2015 09:21:35 +0000 Subject: [PATCH] adjust PLC to Jamulus needs --- libs/opus/celt/celt_decoder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/opus/celt/celt_decoder.c b/libs/opus/celt/celt_decoder.c index 830398ee..0e3d40cc 100644 --- a/libs/opus/celt/celt_decoder.c +++ b/libs/opus/celt/celt_decoder.c @@ -368,7 +368,12 @@ static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, opus_val16 * OPUS_R loss_count = st->loss_count; start = st->start; downsample = st->downsample; - noise_based = loss_count >= 5 || start != 0; + + // The pitch based PLC seems to introduce loud low bandwidth noise which + // is very annoying. We simply disable the pitch based PLC and only use the + // noise based PLC which seems to work much better + noise_based = 1;//loss_count >= 5 || start != 0; + ALLOC(scratch, noise_based?N*C:N, celt_sig); if (noise_based) {