wip: add Audio::callback

This commit is contained in:
🪞👃🪞 2024-10-27 03:22:03 +03:00
parent ec2c96d00e
commit 8d534fc738
4 changed files with 8 additions and 27 deletions

View file

@ -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.