pub struct Syncable<T> {
pub main: T,
pub sync_source: T,
pub sync_dest: T,
}Fields§
§main: T§sync_source: T§sync_dest: TImplementations§
Source§impl<'a> Syncable<&'a mut Voice>
impl<'a> Syncable<&'a mut Voice>
pub fn wave(self) -> Syncable<&'a mut WaveformGenerator>
Source§impl Syncable<&mut WaveformGenerator>
impl Syncable<&mut WaveformGenerator>
Sourcepub fn synchronize(&mut self)
pub fn synchronize(&mut self)
Synchronize oscillators. This must be done after all the oscillators have been clock()’ed since the oscillators operate in parallel. Note that the oscillators must be clocked exactly on the cycle when the MSB is set high for hard sync to operate correctly. See SID::clock().
Auto Trait Implementations§
impl<T> Freeze for Syncable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Syncable<T>where
T: RefUnwindSafe,
impl<T> Send for Syncable<T>where
T: Send,
impl<T> Sync for Syncable<T>where
T: Sync,
impl<T> Unpin for Syncable<T>where
T: Unpin,
impl<T> UnsafeUnpin for Syncable<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Syncable<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