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

Forgot to add some files in previous commit.

This commit is contained in:
Paul Lietar 2016-03-14 00:50:42 +00:00
parent 9274a6bfb3
commit 0973469120
2 changed files with 42 additions and 33 deletions

View file

@ -107,14 +107,10 @@ fn main() {
let reusable_credentials = session.login(credentials).unwrap();
reusable_credentials.save_to_file(credentials_path);
portaudio::initialize().unwrap();
let player = Player::new(session.clone(), || DefaultSink::open());
let spirc = SpircManager::new(session.clone(), player);
thread::spawn(move || spirc.run());
portaudio::terminate().unwrap();
loop {
session.poll();
}