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

Method play_source

perro_source/audio_stack/perro_pawdio/src/player.rs:104–351  ·  view source on GitHub ↗
(&self, request: AudioPlaybackRequest<'_>)

Source from the content-addressed store, hash-verified

102 }
103 let seconds = sample_count / (channels * sample_rate);
104 Some(Duration::from_secs_f64(seconds))
105 }
106}
107
108mod cache;
109mod midi_player;
110mod pcm_source;
111mod playback;
112use pcm_source::{CachedPcmSource, append_with_trims};

Callers 2

play_audioMethod · 0.45
bench_playFunction · 0.45

Calls 15

append_with_trimsFunction · 0.85
cloneMethod · 0.80
decode_and_cache_pcmMethod · 0.80
clampedMethod · 0.80
getMethod · 0.45
durationMethod · 0.45
as_refMethod · 0.45
total_durationMethod · 0.45
get_mutMethod · 0.45
maxMethod · 0.45
set_speedMethod · 0.45
pauseMethod · 0.45

Tested by

no test coverage detected