mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: init shared jack clients
This commit is contained in:
parent
5a325666fd
commit
ec2c96d00e
8 changed files with 74 additions and 35 deletions
|
|
@ -2,6 +2,8 @@ use crate::*;
|
|||
|
||||
/// Root level object for standalone `tek_arranger`
|
||||
pub struct Arranger<E: Engine> {
|
||||
/// JACK client handle (needs to not be dropped for standalone mode to work).
|
||||
pub jack: Option<Arc<JackClient>>,
|
||||
/// Which view is focused
|
||||
pub focus_cursor: (usize, usize),
|
||||
/// Controls the JACK transport.
|
||||
|
|
@ -121,7 +123,8 @@ impl<E: Engine> Arranger<E> {
|
|||
phrases: Arc<RwLock<PhrasePool<E>>>,
|
||||
) -> Self {
|
||||
let mut app = Self {
|
||||
focus_cursor: (0, 1),
|
||||
jack: None,
|
||||
focus_cursor: (0, 1),
|
||||
phrases_split: 20,
|
||||
arrangement_split: 21,
|
||||
editor: PhraseEditor::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue