Using a more reasonably SILK surround calibration value
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 24 Nov 2013 07:01:55 +0000 (02:01 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 24 Nov 2013 07:01:55 +0000 (02:01 -0500)
Still needs more tuning

src/opus_encoder.c

index 47bf74b..cbcd5c6 100644 (file)
@@ -1521,7 +1521,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_
            }
            /* Conservative rate reduction, we cut the masking in half */
            masking_depth = HALF16(mask_sum / end*st->channels);
-           masking_depth += QCONST16(.4f, DB_SHIFT);
+           masking_depth += QCONST16(.1f, DB_SHIFT);
            rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT);
            rate_offset = MAX32(rate_offset, -2*st->silk_mode.bitRate/3);
            st->silk_mode.bitRate += rate_offset;