mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: refactor pt.14: 138 errors
This commit is contained in:
parent
fbf217e108
commit
8b68a993bc
9 changed files with 95 additions and 100 deletions
|
|
@ -1,5 +1,19 @@
|
|||
use crate::*;
|
||||
|
||||
pub struct SequencerAudio {
|
||||
transport: Arc<RwLock<Transport>>,
|
||||
player: Arc<RwLock<MIDIPlayer>>,
|
||||
}
|
||||
|
||||
/// JACK process callback for sequencer app
|
||||
impl Audio for SequencerAudio {
|
||||
fn process (&mut self, client: &Client, scope: &ProcessScope) -> Control {
|
||||
self.transport.write().unwrap().process(client, scope);
|
||||
self.player.write().unwrap().process(client, scope);
|
||||
Control::Continue
|
||||
}
|
||||
}
|
||||
|
||||
pub struct MIDIPlayerAudio {
|
||||
model: Arc<RwLock<MIDIPlayer>>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue