Struct moa_peripherals_yamaha::ym2612::Channel
source · struct Channel {
debug_name: String,
enabled: (bool, bool),
operators: Vec<Operator>,
algorithm: OperatorAlgorithm,
feedback: u8,
key_state: u8,
next_key_clock: u64,
next_key_state: u8,
op1_output: [i16; 2],
}
Fields§
§debug_name: String
§enabled: (bool, bool)
§operators: Vec<Operator>
§algorithm: OperatorAlgorithm
§feedback: u8
§key_state: u8
§next_key_clock: u64
§next_key_state: u8
§op1_output: [i16; 2]
Implementations§
source§impl Channel
impl Channel
fn new(debug_name: String) -> Self
fn set_enabled(&mut self, left: bool, right: bool)
fn set_algorithm_and_feedback( &mut self, algorithm: OperatorAlgorithm, feedback: u8 )
fn change_key_state(&mut self, fm_clock: u64, key: u8)
fn check_key_change(&mut self, clocks: (u64, u64))
fn get_sample(&mut self, clocks: (u64, u64)) -> (f32, f32)
fn get_algorithm_output(&mut self, clocks: (u64, u64), feedback: i16) -> i16
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T