mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-10 13:46:42 +01:00
reset transport position on stop
This commit is contained in:
parent
7aad6d1678
commit
61992ab2a2
1 changed files with 8 additions and 5 deletions
|
|
@ -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 => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue