mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
launch countdown/switchover, pt.2
This commit is contained in:
parent
3df8e87840
commit
97a7bf5b1d
3 changed files with 31 additions and 12 deletions
|
|
@ -236,12 +236,20 @@ impl<E: Engine> Arrangement<E> {
|
|||
size: Measure::new(),
|
||||
}
|
||||
}
|
||||
fn is_stopped (&self) -> bool {
|
||||
*self.clock.playing.read().unwrap() == Some(TransportState::Stopped)
|
||||
}
|
||||
pub fn activate (&mut self) {
|
||||
match self.selected {
|
||||
ArrangementFocus::Scene(s) => {
|
||||
for (t, track) in self.tracks.iter_mut().enumerate() {
|
||||
track.player.enqueue_next(self.scenes[s].clips[t].as_ref());
|
||||
}
|
||||
// TODO make transport available here, so that
|
||||
// activating a scene when stopped starts playback
|
||||
//if self.is_stopped() {
|
||||
//self.transport.toggle_play()
|
||||
//}
|
||||
},
|
||||
ArrangementFocus::Clip(t, s) => {
|
||||
self.tracks[t].player.enqueue_next(self.scenes[s].clips[t].as_ref());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue