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

Method decode_and_cache_pcm

perro_source/audio_stack/perro_pawdio/src/player.rs:1466–1518  ·  view source on GitHub ↗

Decode the full clip to f32 PCM and cache it when it fits the cap. Returns None (and marks the entry oversized) when the clip is too long, so the caller falls back to streaming decode.

(
        &self,
        bytes: &Arc<[u8]>,
        source_hash: u64,
        source: &str,
    )

Source from the content-addressed store, hash-verified

Callers 1

play_sourceMethod · 0.80

Calls 9

cloneMethod · 0.80
maxMethod · 0.45
channelsMethod · 0.45
sample_rateMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45
get_mutMethod · 0.45
durationMethod · 0.45
byte_lenMethod · 0.45

Tested by

no test coverage detected