diff --git a/crates/engine/src/playback.rs b/crates/engine/src/playback.rs index 12d11e3..6299886 100644 --- a/crates/engine/src/playback.rs +++ b/crates/engine/src/playback.rs @@ -12,7 +12,7 @@ use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; -use std::sync::mpsc::Receiver; +use std::sync::mpsc::{Receiver, TryRecvError}; use std::sync::{Arc, Mutex}; use std::thread; use std::time::Duration; @@ -22,6 +22,7 @@ use crate::audio::{AudioChunk, AudioSession}; use crate::clock::{ClockSource, PlaybackClock}; use crate::decode::{DecodeSession, Frame}; use crate::demux::VideoMeta; +use crate::project::{Clip, Project}; /// How long the feeder waits out a full ring. The ring holds a second, so this /// only has to be short next to that; it costs one wakeup per 10 ms of audio. @@ -89,6 +90,17 @@ pub struct PlaybackSession { cancel: Arc, clock: PlaybackClock, audio: Option