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

Remove the volume sample iteration (#986)

Move volume calculations out of their own separate samples iteration and into the normalisation iteration
This commit is contained in:
Jason Gray 2022-05-19 15:23:14 -05:00 committed by GitHub
parent 70de5752dc
commit 7efc62b9ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 126 additions and 125 deletions

View file

@ -6,6 +6,7 @@ use librespot::core::session::Session;
use librespot::core::spotify_id::SpotifyId;
use librespot::playback::audio_backend;
use librespot::playback::config::{AudioFormat, PlayerConfig};
use librespot::playback::mixer::NoOpVolume;
use librespot::playback::player::Player;
#[tokio::main]
@ -30,7 +31,7 @@ async fn main() {
.await
.unwrap();
let (mut player, _) = Player::new(player_config, session, None, move || {
let (mut player, _) = Player::new(player_config, session, Box::new(NoOpVolume), move || {
backend(None, audio_format)
});