1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 18:29:45 +02:00

Use stream_editor in player

This commit is contained in:
Daniel Romero 2017-01-25 22:56:06 +01:00
parent 6df2af0ac9
commit 636de3fe71
4 changed files with 17 additions and 9 deletions

View file

@ -129,7 +129,7 @@ fn setup(args: &[String]) -> (Session, Player, Box<Mixer + Send>) {
let mixer = mixer::find(&mixer_name).unwrap();
let device_name = matches.opt_str("device");
let player = Player::new(session.clone(), move || {
let player = Player::new(session.clone(), mixer.get_stream_editor(), move || {
(backend)(device_name.as_ref().map(AsRef::as_ref))
});