wip: compiled layouts
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
i do not exist 2026-08-29 18:46:46 +03:00
parent 6771b24f79
commit f1756f9a0e
21 changed files with 534 additions and 263 deletions

View file

@ -31,7 +31,7 @@ impl Scene {
/// Get pulse length of the longest clip in the scene
pub fn pulses (&self) -> usize {
self.clips.iter().fold(0, |a, p|{
a.max(p.as_ref().map(|q|q.read().unwrap().length).unwrap_or(0))
a.max(p.as_ref().map(|q|q.try_read().unwrap().length).unwrap_or(0))
})
}
@ -43,7 +43,7 @@ impl Scene {
.get(track_index)
.map(|track|{
if let Some((_, Some(clip))) = track.sequencer().play_clip() {
*clip.read().unwrap() == *c.read().unwrap()
*clip.try_read().unwrap() == *c.try_read().unwrap()
} else {
false
}