Struct audio_engine::SineWave
source · [−]Expand description
A SoundSource that generates a sine wave with a given frequency.
Fields
sample_rate: u32The sample_rate of this SoundSource.
freq: f32The frequency of the sine wave, in Hertz
Implementations
Trait Implementations
sourceimpl SoundSource for SineWave
impl SoundSource for SineWave
Auto Trait Implementations
impl RefUnwindSafe for SineWave
impl Send for SineWave
impl Sync for SineWave
impl Unpin for SineWave
impl UnwindSafe for SineWave
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more