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

Method raw_byte_len

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

Source from the content-addressed store, hash-verified

171 Self::try_new(samples, sample_rate, channels)
172 }
173
174 fn unpack_v2(bytes: &[u8]) -> Result<Self, String> {
175 if bytes.len() < PMIC_COMPRESSED_HEADER_LEN {
176 return Err("mic clip v2 too small".to_string());
177 }
178 let channels = u16::from_le_bytes([bytes[6], bytes[7]]);

Callers 1

compression_ratioMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected