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

Method seconds

perro_source/audio_stack/perro_pawdio/src/mic.rs:35–37  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

33
34impl MicClip {
35 /// Creates a clip and panics when its format cannot be encoded losslessly.
36 ///
37 /// Prefer [`Self::try_new`] for data that is not already trusted.
38 pub fn new(samples: Vec<i16>, sample_rate: u32, channels: u16) -> Self {
39 Self::try_new(samples, sample_rate, channels).expect("invalid mic clip format")
40 }

Callers

nothing calls this directly

Calls 1

durationMethod · 0.45

Tested by

no test coverage detected