pub struct SineWave {
pub sample_rate: u32,
pub freq: f32,
/* private fields */
}
Expand description
A SoundSource that generates a sine wave with a given frequency.
Fields§
§sample_rate: u32
The sample_rate of this SoundSource.
freq: f32
The frequency of the sine wave, in Hertz
Implementations§
Trait Implementations§
Source§impl SoundSource for SineWave
impl SoundSource for SineWave
Auto Trait Implementations§
impl Freeze for SineWave
impl RefUnwindSafe for SineWave
impl Send for SineWave
impl Sync for SineWave
impl Unpin for SineWave
impl UnwindSafe for SineWave
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