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

Method play_source_arc

perro_source/audio_stack/perro_pawdio/src/controller.rs:269–275  ·  view source on GitHub ↗
(&self, request: AudioPlaybackRequest<'_>, source: Arc<str>)

Source from the content-addressed store, hash-verified

267
268 Self::new_with_player_factory(static_audio_lookup, BarkPlayer::new)
269 }
270
271 fn new_with_player_factory<F>(
272 static_audio_lookup: Option<fn(u64) -> &'static [u8]>,
273 player_factory: F,
274 ) -> Result<Self, String>
275 where
276 F: FnOnce(Option<fn(u64) -> &'static [u8]>) -> Result<BarkPlayer, String> + Send + 'static,
277 {
278 let (tx, rx) = crossbeam_channel::bounded::<AudioCommand>(Self::COMMAND_QUEUE_CAPACITY);

Callers 2

play_sourceMethod · 0.80
play_source_handleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected