mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wrap JackClient in Arc
This commit is contained in:
parent
b9cf6b8008
commit
5a325666fd
4 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ impl ArrangerCli {
|
|||
|state: &Arc<RwLock<TransportToolbar<Tui>>>, client, scope| {
|
||||
state.write().unwrap().process(client, scope)
|
||||
}
|
||||
)?
|
||||
)?.into()
|
||||
);
|
||||
Tui::run(Arc::new(RwLock::new(Arranger::new(
|
||||
self.transport.then_some(transport),
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ impl SequencerCli {
|
|||
|state: &Arc<RwLock<TransportToolbar<Tui>>>, client, scope| {
|
||||
state.write().unwrap().process(client, scope)
|
||||
}
|
||||
)?
|
||||
)?.into()
|
||||
);
|
||||
let focus_cursor = (1, 1);
|
||||
let clock = transport.read().unwrap().clock.clone();
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ pub struct TransportToolbar<E: Engine> {
|
|||
/// Enable metronome?
|
||||
pub metronome: bool,
|
||||
/// JACK client handle (needs to not be dropped for standalone mode to work).
|
||||
pub jack: Option<JackClient>,
|
||||
pub jack: Option<Arc<JackClient>>,
|
||||
/// JACK transport handle.
|
||||
pub transport: Option<Transport>,
|
||||
/// Global sample and usec at which playback started
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ pub fn main () -> Usually<()> {
|
|||
|state: &Arc<RwLock<TransportToolbar<Tui>>>, client, scope| {
|
||||
state.write().unwrap().process(client, scope)
|
||||
}
|
||||
)?
|
||||
)?.into()
|
||||
);
|
||||
Tui::run(transport)?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue