mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
More alsa
stragglers
This commit is contained in:
parent
a80bf86a2b
commit
cc6c9b2dc4
3 changed files with 18 additions and 15 deletions
|
@ -2,7 +2,6 @@ use super::{Open, Sink};
|
|||
use alsa::device_name::HintIter;
|
||||
use alsa::pcm::{Access, Format, HwParams, PCM};
|
||||
use alsa::{Direction, Error, ValueOr};
|
||||
use std::env;
|
||||
use std::ffi::CString;
|
||||
use std::io;
|
||||
use std::process::exit;
|
||||
|
@ -15,7 +14,7 @@ fn list_outputs() {
|
|||
let i = HintIter::new(None, &*CString::new(*t).unwrap()).unwrap();
|
||||
for a in i {
|
||||
if let Some(Direction::Playback) = a.direction {
|
||||
println!("{:#?}", a)
|
||||
println!("{}\n\t{}", a.name.unwrap(), a.desc.unwrap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue