pub struct AudioChannelData {
pub address: u8,
pub enabled: bool,
pub noise_enabled: bool,
pub level: u8,
pub pitch_bend: f32,
pub last_note: Option<Note>,
}Expand description
This helper struct tracks the current state of the YM2149’s channels.
Fields§
§address: u8§enabled: bool§noise_enabled: bool§level: u8§pitch_bend: f32§last_note: Option<Note>Implementations§
Trait Implementations§
Source§impl Clone for AudioChannelData
impl Clone for AudioChannelData
Source§fn clone(&self) -> AudioChannelData
fn clone(&self) -> AudioChannelData
Returns a duplicate 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 moreSource§impl Debug for AudioChannelData
impl Debug for AudioChannelData
impl Copy for AudioChannelData
Auto Trait Implementations§
impl Freeze for AudioChannelData
impl RefUnwindSafe for AudioChannelData
impl Send for AudioChannelData
impl Sync for AudioChannelData
impl Unpin for AudioChannelData
impl UnwindSafe for AudioChannelData
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