mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-09-18 12:56:42 +02:00
This commit is contained in:
parent
6771b24f79
commit
f1756f9a0e
21 changed files with 534 additions and 263 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue