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:
parent
9274a6bfb3
commit
0973469120
2 changed files with 42 additions and 33 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue