mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: add Audio::callback
This commit is contained in:
parent
ec2c96d00e
commit
8d534fc738
4 changed files with 8 additions and 27 deletions
|
|
@ -6,6 +6,11 @@ pub trait Audio {
|
|||
fn process(&mut self, _: &Client, _: &ProcessScope) -> Control {
|
||||
Control::Continue
|
||||
}
|
||||
fn callback(
|
||||
state: &Arc<RwLock<Self>>, client: &Client, scope: &ProcessScope
|
||||
) -> Control where Self: Sized {
|
||||
state.write().unwrap().process(client, scope)
|
||||
}
|
||||
}
|
||||
|
||||
/// Trait for things that may expose JACK ports.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue