Struct moa_peripherals_yamaha::ym2612::PhaseGenerator
source · struct PhaseGenerator {
debug_name: String,
block: u8,
fnumber: u16,
detune: u8,
multiple: u32,
rate_scaling: u8,
counter: u32,
increment: u32,
}
Fields§
§debug_name: String
§block: u8
§fnumber: u16
§detune: u8
§multiple: u32
§rate_scaling: u8
§counter: u32
§increment: u32
Implementations§
source§impl PhaseGenerator
impl PhaseGenerator
fn new(debug_name: String) -> Self
fn reset(&mut self)
fn set_block_and_fnumber(&mut self, block: u8, fnumber: u16)
fn set_detune_and_multiple(&mut self, detune: u8, multiple: u8)
fn set_rate_scaling(&mut self, rate_scaling: u8)
fn get_rate_adjust(&self) -> usize
fn calculate_phase_increment(&mut self)
fn update_phase(&mut self, _fm_clock: u64) -> i16
Trait Implementations§
source§impl Clone for PhaseGenerator
impl Clone for PhaseGenerator
source§fn clone(&self) -> PhaseGenerator
fn clone(&self) -> PhaseGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PhaseGenerator
impl Send for PhaseGenerator
impl Sync for PhaseGenerator
impl Unpin for PhaseGenerator
impl UnwindSafe for PhaseGenerator
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