Surround low-passing thresholds set to much lower bitrates
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 24 Nov 2013 06:57:52 +0000 (01:57 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sun, 24 Nov 2013 06:57:52 +0000 (01:57 -0500)
src/opus_multistream_encoder.c

index cec6266..49e2791 100644 (file)
@@ -775,11 +775,11 @@ static int opus_multistream_encode_native
          equiv_rate = st->bitrate_bps;
          if (frame_size*50 < Fs)
             equiv_rate -= 60*(Fs/frame_size - 50)*st->layout.nb_channels;
-         if (equiv_rate > 16000*st->layout.nb_channels)
+         if (equiv_rate > 10000*st->layout.nb_channels)
             opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND));
-         else if (equiv_rate > 12000*st->layout.nb_channels)
+         else if (equiv_rate > 7000*st->layout.nb_channels)
             opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_SUPERWIDEBAND));
-         else if (equiv_rate > 8000*st->layout.nb_channels)
+         else if (equiv_rate > 5000*st->layout.nb_channels)
             opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_WIDEBAND));
          else
             opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND));