pub struct Engine { /* private fields */ }
Implementations§
Source§impl Engine
impl Engine
pub fn new<'a, H: Host<'a>>( host: &mut H, gui_sender: GuiSender, command_input: Receiver<Command>, beat_normal: Vec<f32>, beat_emphasis: Vec<f32>, restore: bool, sample_rate: usize, ) -> Engine
pub fn process<'a, H: Host<'a>>( &mut self, host: &mut H, in_bufs: [&[f32]; 2], out_l: &mut [f32], out_r: &mut [f32], met_bufs: [&mut [f32]; 2], frames: u64, midi_events: &[MidiEvent], )
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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