INNER CODE UNIT · Rust
t_audio
Rikorose/DeepFilterNet · ladspa/src/lib.rs:435
let t_audio = sample_count as f32 / self.sr as f32;
let rtf = td.as_secs_f32() / t_audio;
if rtf >= 1. {
log::warn!(
"DF {} | Underrun detected (RTF: {:.2}). Processing too slow!",
self.id,
rtf
);
if self.proc_delay >= self.sr {
panic!(
"DF {} | Processing too slow! Please upgrade your CPU. Try to decrease 'Max DF processing threshold (dB)'.",
self.id,
);
}
self.proc_delay += self.frame_size;
self.t_proc_change = 0;
log::info!(
"DF {} | Increasing processing latency to {:.1}ms",