Skip to content

Commit 5667867

Browse files
author
Jan Buethe
committed
updates under ENABLE_OSCE_TRAINING_DATA
1 parent dfd4175 commit 5667867

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/opus_demo.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static OpusDecoder *ms_opus_decoder_create(opus_int32 Fs, int channels, int *err
294294
#define PACKET_LOSS_PERC_MAX 50
295295
#define PACKET_LOSS_PERC_STEP 5
296296

297-
#define CBR_BITRATE_LIMIT 8000
297+
#define CBR_BITRATE_LIMIT 80000
298298

299299
#define NUM_BITRATES 102
300300
static int bitrates[NUM_BITRATES] = {
@@ -727,6 +727,10 @@ int main(int argc, char *argv[])
727727
{
728728
opus_encoder_ctl(enc, OPUS_SET_DRED_DURATION(dred_duration));
729729
}
730+
#ifdef ENABLE_OSCE_TRAINING_DATA
731+
opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY));
732+
srand(0);
733+
#endif
730734
}
731735
if (!encode_only)
732736
{

0 commit comments

Comments
 (0)