MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / num_pre_process_frames

Method num_pre_process_frames

crates/firewheel-graph/src/processor/process.rs:240–258  ·  view source on GitHub ↗
(
        &mut self,
        block_frames: usize,
        clock_samples: InstantSamples,
    )

Source from the content-addressed store, hash-verified

238
239 #[cfg(feature = "scheduled_events")]
240 fn num_pre_process_frames(
241 &mut self,
242 block_frames: usize,
243 clock_samples: InstantSamples,
244 ) -> usize {
245 if self.schedule_data.is_none() {
246 return block_frames;
247 }
248 let schedule_data = self.schedule_data.as_ref().unwrap();
249
250 if !schedule_data.schedule.has_pre_proc_nodes() {
251 return block_frames;
252 }
253
254 let clock_samples_range =
255 clock_samples..clock_samples + DurationSamples(block_frames as i64);
256 self.event_scheduler
257 .num_pre_process_frames(block_frames, clock_samples_range)
258 }
259
260 #[expect(clippy::too_many_arguments, reason = "Function needs many arguments")]
261 fn process_block(

Callers 1

processMethod · 0.45

Calls 3

DurationSamplesClass · 0.85
as_refMethod · 0.80
has_pre_proc_nodesMethod · 0.80

Tested by

no test coverage detected