node graph fixes

This commit is contained in:
Skyler Lehmkuhl
2026-02-15 09:11:39 -05:00
parent 1e7001b291
commit 7387299b52
29 changed files with 3277 additions and 77 deletions
+15
View File
@@ -506,6 +506,21 @@ impl Project {
}
}
/// Set export (blocking) mode on all clip read-ahead buffers.
/// When enabled, `render_from_file` blocks until the disk reader
/// has filled the needed frames instead of returning silence.
pub fn set_export_mode(&self, export: bool) {
for track in self.tracks.values() {
if let TrackNode::Audio(t) = track {
for clip in &t.clips {
if let Some(ref ra) = clip.read_ahead {
ra.set_export_mode(export);
}
}
}
}
}
/// Reset all node graphs (clears effect buffers on seek)
pub fn reset_all_graphs(&mut self) {
for track in self.tracks.values_mut() {