MCPcopy Create free account
hub / github.com/PerroEngine/Perro / mic_play

Method mic_play

perro_source/runtime_project/perro_runtime/src/rs_ctx/mic.rs:36–50  ·  view source on GitHub ↗
(&self, bus_id: Option<perro_ids::AudioBusID>, clip: &MicClip, volume: f32)

Source from the content-addressed store, hash-verified

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()

Callers 4

play_masterMethod · 0.80
play_master_volumeMethod · 0.80
play_busMethod · 0.80
play_bus_volumeMethod · 0.80

Calls 3

cloneMethod · 0.80
as_refMethod · 0.45
play_clipMethod · 0.45

Tested by

no test coverage detected