pub struct LoadedInstrument {
pub instrument: SamplerInstrument,
pub buffers: HashMap<String, SampleBuffer>,
pub release_buffers: HashMap<String, SampleBuffer>,
}Expand description
Loaded instrument — zones with their audio buffers in memory.
Fields§
§instrument: SamplerInstrument§buffers: HashMap<String, SampleBuffer>Maps zone id → loaded buffer.
release_buffers: HashMap<String, SampleBuffer>Maps zone id → release buffer (if any).
Implementations§
Auto Trait Implementations§
impl Freeze for LoadedInstrument
impl RefUnwindSafe for LoadedInstrument
impl Send for LoadedInstrument
impl Sync for LoadedInstrument
impl Unpin for LoadedInstrument
impl UnsafeUnpin for LoadedInstrument
impl UnwindSafe for LoadedInstrument
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