wip: AudioEngine pt.2 (rewrite activation sanely)

This commit is contained in:
🪞👃🪞 2024-11-03 04:43:50 +02:00
parent 2303b258f6
commit 746e29aeb3
8 changed files with 104 additions and 106 deletions

View file

@ -9,7 +9,7 @@ pub type PhraseChunk = [Vec<PhraseMessage>];
/// Root level object for standalone `tek_sequencer`
pub struct Sequencer<E: Engine> {
/// JACK client handle (needs to not be dropped for standalone mode to work).
pub jack: Option<Arc<JackClient>>,
pub jack: Arc<RwLock<JackClient>>,
/// Which view is focused
pub focus_cursor: (usize, usize),
/// Controls the JACK transport.
@ -392,7 +392,7 @@ impl PartialEq for Phrase { fn eq (&self, other: &Self) -> bool { self.uuid == o
impl Eq for Phrase {}
impl PhrasePlayer {
pub fn new (
jack: &Arc<JackClient>,
jack: &Arc<RwLock<JackClient>>,
clock: &Arc<TransportTime>
) -> Self {
Self {