pub(crate) fn open_device(wanted: Option<&str>) -> Result<Device, Error>Expand description
Resolve a caller’s choice to a cpal device.
A named device that has gone is an error rather than a fallback: someone who chose a USB interface and finds it unplugged needs to know, not to be quietly recorded on the built-in microphone.