Module alsa::device_name
source · Expand description
Enumerate devices in the alsa library configuration
Example
Print all devices found in various categories.
use std::ffi::CString;
use alsa::device_name::HintIter;
for t in &["pcm", "ctl", "rawmidi", "timer", "seq", "hwdep"] {
println!("{} devices:", t);
let i = HintIter::new(None, &*CString::new(*t).unwrap()).unwrap();
for a in i { println!(" {:?}", a) }
}
Structs
- snd_device_name_get_hint wrapper
- snd_device_name_hint wrapper