Use recommended hardware sample rate

This commit is contained in:
Simon Gellis 2026-08-09 17:30:24 -04:00
parent 0a8663a010
commit ff8353cacc
No known key found for this signature in database
GPG Key ID: DA576912FED9577B
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ impl Audio {
}) else {
bail!("No suitable output config available");
};
let mut config = config.with_max_sample_rate().config();
let mut config = config.with_sample_rate(default_rate).config();
let resample_ratio = config.sample_rate as f64 / VB_FREQUENCY as f64;
let chunk_size = (834.0 * resample_ratio) as usize;
let sampler = rubato::Async::new_poly(