wip: refactor pt.12, separate tek_snd

This commit is contained in:
🪞👃🪞 2024-11-10 22:24:58 +01:00
parent 47c9cd2fe8
commit 2be7aee002
28 changed files with 955 additions and 766 deletions

View file

@ -38,23 +38,6 @@ pub struct ArrangementScene {
pub color: ItemColor,
}
impl Audio for Arrangement {
#[inline] fn process (&mut self, client: &Client, scope: &ProcessScope) -> Control {
for track in self.tracks.iter_mut() {
if track.process(client, scope) == Control::Quit {
return Control::Quit
}
}
Control::Continue
}
}
impl Audio for ArrangementTrack {
#[inline] fn process (&mut self, client: &Client, scope: &ProcessScope) -> Control {
self.player.process(client, scope)
}
}
impl Arrangement {
pub fn is_stopped (&self) -> bool {
*self.clock.playing.read().unwrap() == Some(TransportState::Stopped)