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

Method new

perro_source/audio_stack/perro_pawdio/src/mic.rs:22–28  ·  view source on GitHub ↗
(samples: Vec<i16>, sample_rate: u32, channels: u16)

Source from the content-addressed store, hash-verified

20/// ~11.6 minutes of 48 kHz stereo, far past any mic capture, while keeping the
21/// worst-case decode buffer bounded.
22const PMIC_MAX_SAMPLES: usize = 1 << 26;
23
24#[derive(Clone, Debug, PartialEq)]
25pub struct MicClip {
26 samples: Vec<i16>,
27 sample_rate: u32,
28 channels: u16,
29}
30
31impl MicClip {

Callers

nothing calls this directly

Calls 4

mic_workerFunction · 0.85
okMethod · 0.80
maxMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected