recording v1

This commit is contained in:
DMSDeveloper 2018-04-22 23:24:05 +10:00 • committed by mitchmindtree
parent 2cfd60757a
commit c978583863
2 changed files with 208 additions and 207 deletions

View file

@ -182,6 +182,12 @@ impl Iterator for Devices {
// so returning first in list as default
pub fn default_input_device() -> Option<Device> {
let mut driver_list = sys::get_driver_list();
for dn in &driver_list{
if dn == "ASIO4ALL v2"{
println!("Defaulted to ASIO4ALL **remove from production**");
return Some(Device{ driver_name: dn.clone() });
}
}
match driver_list.pop() {
Some(dn) => Some(Device{ driver_name: dn }),
None => None,