mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
merge jack::client into jack
need to remove AudioEngine trait and register callbacks manually
This commit is contained in:
parent
411d4bc91d
commit
02878dd954
3 changed files with 70 additions and 116 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue