pub struct NodeAdapter<T: DspProcess + AetherNodeMeta> {
pub inner: T,
}Expand description
Adapter that bridges DspProcess → DspNode so NDK nodes
work transparently inside the AetherDSP engine.
Fields§
§inner: TTrait Implementations§
Source§impl<T: DspProcess + AetherNodeMeta + 'static> DspNode for NodeAdapter<T>
impl<T: DspProcess + AetherNodeMeta + 'static> DspNode for NodeAdapter<T>
Source§fn process(
&mut self,
inputs: &[Option<&[f32; 64]>; 8],
output: &mut [f32; 64],
params: &mut ParamBlock,
sample_rate: f32,
)
fn process( &mut self, inputs: &[Option<&[f32; 64]>; 8], output: &mut [f32; 64], params: &mut ParamBlock, sample_rate: f32, )
Process one buffer of audio. Read more
Source§fn capture_state(&self) -> StateBlob
fn capture_state(&self) -> StateBlob
Capture internal state for continuity transfer.
Source§fn restore_state(&mut self, state: StateBlob)
fn restore_state(&mut self, state: StateBlob)
Restore internal state after a graph mutation.
Auto Trait Implementations§
impl<T> Freeze for NodeAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for NodeAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for NodeAdapter<T>
impl<T> Sync for NodeAdapter<T>where
T: Sync,
impl<T> Unpin for NodeAdapter<T>where
T: Unpin,
impl<T> UnsafeUnpin for NodeAdapter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NodeAdapter<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more