1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00

refactor: update dependencies and code for latest ecosystem changes

- Update many dependencies to latest versions across all crates
- Switch from `once_cell::OnceCell` to `std::sync::OnceLock` where appropriate
- Update OAuth to use stateful `reqwest` for HTTP requests
- Fix Rodio backend to honor the requested sample format
This commit is contained in:
Roderick van Domburg 2025-08-13 13:19:48 +02:00
parent 1d5c0d8451
commit ce1ab8ff3f
No known key found for this signature in database
GPG key ID: 607FA06CB5236AE0
25 changed files with 1662 additions and 1205 deletions

View file

@ -43,7 +43,7 @@ impl fmt::Display for dyn Ditherer {
}
fn create_rng() -> SmallRng {
SmallRng::from_entropy()
SmallRng::from_os_rng()
}
pub struct TriangularDitherer {
@ -113,7 +113,9 @@ impl Ditherer for HighPassDitherer {
active_channel: 0,
previous_noises: [0.0; NUM_CHANNELS as usize],
cached_rng: create_rng(),
distribution: Uniform::new_inclusive(-0.5, 0.5), // 1 LSB +/- 1 LSB (previous) = 2 LSB
// 1 LSB +/- 1 LSB (previous) = 2 LSB
distribution: Uniform::new_inclusive(-0.5, 0.5)
.expect("Failed to create uniform distribution"),
}
}