pub struct LooperBackend {
pub id: u32,
pub samples: Vec<Sample>,
pub mode: Arc<Atomic<LooperMode>>,
pub length: Arc<Atomic<u64>>,
pub speed: LooperSpeed,
pub pan: f32,
pub level: f32,
pub parts: PartSet,
pub deleted: bool,
pub channel: Receiver<ControlMessage>,
/* private fields */
}Fields§
§id: u32§samples: Vec<Sample>§mode: Arc<Atomic<LooperMode>>§length: Arc<Atomic<u64>>§speed: LooperSpeed§pan: f32§level: f32§parts: PartSet§deleted: bool§channel: Receiver<ControlMessage>Implementations§
Source§impl LooperBackend
impl LooperBackend
pub fn process_until_done(&mut self)
pub fn mode(&self) -> LooperMode
pub fn transition_to(&mut self, mode: LooperMode)
pub fn length_in_samples(&self, adjust_for_speed: bool) -> u64
pub fn serialize(&self, path: &Path) -> Result<SavedLooper, SaveLoadError>
Auto Trait Implementations§
impl Freeze for LooperBackend
impl !RefUnwindSafe for LooperBackend
impl Send for LooperBackend
impl Sync for LooperBackend
impl Unpin for LooperBackend
impl !UnwindSafe for LooperBackend
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