shithub: opus

Download patch

ref: 5667867fa293dbbc632a7c78308f4ad2db9c52df
parent: dfd4175a90a7c0fbd67799b9e3ad93611027c904
author: Jan Buethe <jbuethe@amazon.de>
date: Tue Apr 23 06:38:45 EDT 2024

updates under ENABLE_OSCE_TRAINING_DATA

--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -294,7 +294,7 @@
 #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] = {
@@ -727,6 +727,10 @@
        {
           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)
     {
--