Skip to content

Commit

Permalink
updates under ENABLE_OSCE_TRAINING_DATA
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Buethe committed Apr 23, 2024
1 parent dfd4175 commit 5667867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/opus_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static OpusDecoder *ms_opus_decoder_create(opus_int32 Fs, int channels, int *err
#define PACKET_LOSS_PERC_MAX 50
#define PACKET_LOSS_PERC_STEP 5

#define CBR_BITRATE_LIMIT 8000
#define CBR_BITRATE_LIMIT 80000

#define NUM_BITRATES 102
static int bitrates[NUM_BITRATES] = {
Expand Down Expand Up @@ -727,6 +727,10 @@ int main(int argc, char *argv[])
{
opus_encoder_ctl(enc, OPUS_SET_DRED_DURATION(dred_duration));
}
#ifdef ENABLE_OSCE_TRAINING_DATA
opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY));
srand(0);
#endif
}
if (!encode_only)
{
Expand Down

0 comments on commit 5667867

Please sign in to comment.