]> code.octet-stream.net Git - m17rt/commitdiff
Default to nearest, not largest, sample rate for voice
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Mon, 19 May 2025 20:36:14 +0000 (06:36 +1000)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Mon, 19 May 2025 20:36:14 +0000 (06:36 +1000)
m17codec2/src/lib.rs

index 693cb09533dac872f990e8ff60f65914db9d6354..c466ef2f5614afa64bc03938b03029b23a88325c 100644 (file)
@@ -222,7 +222,7 @@ fn stream_thread(
         if config.min_sample_rate().0 <= 8000 && config.max_sample_rate().0 >= 8000 {
             8000
         } else {
-            config.max_sample_rate().0
+            config.min_sample_rate().0
         };
     let channels = config.channels();