(&self, bus_id: Option<perro_ids::AudioBusID>, clip: &MicClip, volume: f32)
| 34 | self.mic |
| 35 | .lock() |
| 36 | .map(|mic| mic.is_listening()) |
| 37 | .unwrap_or(false) |
| 38 | } |
| 39 | |
| 40 | fn mic_device(&self) -> Option<String> { |
| 41 | self.mic.lock().ok()?.device() |
| 42 | } |
| 43 | |
| 44 | fn mic_last_error(&self) -> Option<String> { |
| 45 | self.mic.lock().ok()?.last_error() |
| 46 | } |
| 47 | |
| 48 | fn mic_level(&self) -> f32 { |
| 49 | self.mic.lock().map(|mic| mic.level()).unwrap_or(0.0) |
| 50 | } |
| 51 | |
| 52 | fn mic_diagnostic(&self) -> Option<String> { |
| 53 | self.mic.lock().ok()?.diagnostic() |
no test coverage detected