pub struct LockstepTone {
pub produced: i64,
}Expand description
Socket 9: a source at 32 kHz with a gain the mixer applies, a fixed pattern.
Fields§
§produced: i64Trait Implementations§
Source§impl AudioSource for LockstepTone
impl AudioSource for LockstepTone
fn rate_hz(&self) -> f64
fn gain(&self) -> f64
Source§fn take_samples(&mut self, mclk: i64) -> Vec<(i32, i32)>
fn take_samples(&mut self, mclk: i64) -> Vec<(i32, i32)>
Stereo samples produced up to
mclk since the last call.Source§fn applies_gain(&self) -> bool
fn applies_gain(&self) -> bool
True when the source’s samples already carry its gain (the PSG): the mixer must not
apply it a second time.
Source§impl Clone for LockstepTone
impl Clone for LockstepTone
Source§fn clone(&self) -> LockstepTone
fn clone(&self) -> LockstepTone
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 LockstepTone
impl Debug for LockstepTone
Source§impl Default for LockstepTone
impl Default for LockstepTone
Source§fn default() -> LockstepTone
fn default() -> LockstepTone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LockstepTone
impl<'de> Deserialize<'de> for LockstepTone
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeviceState for LockstepTone
impl DeviceState for LockstepTone
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Put the device in a saved state. A device without state accepts only an empty one.
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
What the device is and which media it holds (a card’s ROM by its SHA-1, a disc by its
table of contents): a state is refused by a system whose device answers otherwise.
Auto Trait Implementations§
impl Freeze for LockstepTone
impl RefUnwindSafe for LockstepTone
impl Send for LockstepTone
impl Sync for LockstepTone
impl Unpin for LockstepTone
impl UnwindSafe for LockstepTone
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