merge jack::client into jack

need to remove AudioEngine trait and register callbacks manually
This commit is contained in:
🪞👃🪞 2024-12-29 15:35:29 +01:00
parent 411d4bc91d
commit 02878dd954
3 changed files with 70 additions and 116 deletions

View file

@ -34,17 +34,3 @@ impl JackActivate for JackConnection {
Ok(target)
}
}
/// A UI component that may be associated with a JACK client by the `Jack` factory.
pub trait AudioComponent<E: Engine>: Component<E> + Audio {
/// Perform type erasure for collecting heterogeneous devices.
fn boxed(self) -> Box<dyn AudioComponent<E>>
where
Self: Sized + 'static,
{
Box::new(self)
}
}
/// All things that implement the required traits can be treated as `AudioComponent`.
impl<E: Engine, W: Component<E> + Audio> AudioComponent<E> for W {}