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:
parent
70de5752dc
commit
7efc62b9ca
5 changed files with 126 additions and 125 deletions
|
@ -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)
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue