pub struct FakeAudioSource;Trait Implementations§
Source§impl AudioSource for FakeAudioSource
impl AudioSource for FakeAudioSource
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 Default for FakeAudioSource
impl Default for FakeAudioSource
Source§fn default() -> FakeAudioSource
fn default() -> FakeAudioSource
Returns the “default value” for a type. Read more
Source§impl DeviceState for FakeAudioSource
impl DeviceState for FakeAudioSource
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 FakeAudioSource
impl RefUnwindSafe for FakeAudioSource
impl Send for FakeAudioSource
impl Sync for FakeAudioSource
impl Unpin for FakeAudioSource
impl UnwindSafe for FakeAudioSource
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