mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
wip: add Audio::callback
This commit is contained in:
parent
ec2c96d00e
commit
8d534fc738
4 changed files with 8 additions and 27 deletions
|
|
@ -39,7 +39,7 @@ impl SequencerCli {
|
|||
//}
|
||||
}
|
||||
let sequencer = Arc::new(RwLock::new(sequencer));
|
||||
let jack = jack.activate(&sequencer.clone(), sequencer_jack_callback)?;
|
||||
let jack = jack.activate(&sequencer.clone(), Sequencer::callback)?;
|
||||
let jack = Some(jack.into());
|
||||
if let Some(ref transport) = sequencer.read().unwrap().transport {
|
||||
transport.write().unwrap().jack = jack.clone();
|
||||
|
|
@ -48,11 +48,3 @@ impl SequencerCli {
|
|||
Tui::run(sequencer).map(|_|())
|
||||
}
|
||||
}
|
||||
|
||||
fn sequencer_jack_callback (
|
||||
state: &Arc<RwLock<Sequencer<Tui>>>,
|
||||
client: &Client,
|
||||
scope: &ProcessScope,
|
||||
) -> Control {
|
||||
state.write().unwrap().process(client, scope)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue