reset transport position on stop

This commit is contained in:
🪞👃🪞 2024-10-21 22:59:33 +03:00
parent 7aad6d1678
commit 61992ab2a2

View file

@ -26,8 +26,11 @@ impl<E: Engine> TransportToolbar<E> {
} }
} }
self.playing = Some(transport.state); self.playing = Some(transport.state);
if self.playing == Some(TransportState::Stopped) {
self.started = None;
}
match self.started { match self.started {
Some((frames, usecs)) => { Some((_, usecs)) => {
self.usecs = current_usecs as usize - usecs; self.usecs = current_usecs as usize - usecs;
}, },
None => { None => {