pub fn with_format(format: AudioFormat, amplitude: f32, frequency: f32) -> Self {
        SineWave {
            amplitude,
            format,
            phase: 0.0,
            frequency,
        }
    }
/// Construct a new sine wave generator with the given format, amplitude, and frequency.
///
/// # Arguments
///
/// * `format` -- The format for the generated stream.
/// * `amplitude` -- The peak value of samples generated by the generator.
/// * `frequency` -- The frequency of the wave generated, in Hz.
Construct a new sine wave generator with the given format, amplitude, and frequency.
Construct a new sine wave generator with the given format amplitude and frequency .
pub fn with_format(format: AudioFormat, amplitude: f32, frequency: f32) -> Self {
        SineWave {
            amplitude,
            format,
            phase: 0.0,
            frequency,
        }
    }
pub fn with_format ( format : AudioFormat , amplitude : f32 , frequency : f32 ) -> Self { SineWave { amplitude , format , phase : 0.0 , frequency , } }
Construct a new sine wave generator with the given format, amplitude, and frequency.
Construct a new sine wave generator with the given format amplitude and frequency .
format
AudioFormat
amplitude
f32
frequency
f32
format
AudioFormat
amplitude
f32
frequency
f32