pub fn from_frames_of_silence(frame_rate_hz: u32, num_channels: u32, num_frames: u64) -> Self {
        FloatWaveform {
            frame_rate_hz,
            num_channels,
            num_frames,
            interleaved_samples: vec![0.0; (num_channels as u64 * num_frames) as usize],
        }
    }
/// Creates a silent waveform measured in frames.
///
/// # Examples
/// This creates a `FloatWaveform` containing one second of silent *stereo* audio.
/// ```
/// use babycat::FloatWaveform;
///
/// let waveform = FloatWaveform::from_frames_of_silence(44100, 2, 44100);
/// assert_eq!(
///     format!("{:?}", waveform),
///     "FloatWaveform { frame_rate_hz: 44100, num_channels: 2, num_frames: 44100}"
/// );
/// ```
///
Creates a silent waveform measured in frames.
Creates a silent waveform measured in frames .
pub fn from_frames_of_silence(frame_rate_hz: u32, num_channels: u32, num_frames: u64) -> Self {
        FloatWaveform {
            frame_rate_hz,
            num_channels,
            num_frames,
            interleaved_samples: vec![0.0; (num_channels as u64 * num_frames) as usize],
        }
    }
pub fn from_frames_of_silence ( frame_rate_hz : u32 , num_channels : u32 , num_frames : u64 ) -> Self { FloatWaveform { frame_rate_hz , num_channels , num_frames , interleaved_samples : vec ! [ 0.0 ( num_channels as u64 num_frames ) as usize ] , } }
Creates a silent waveform measured in frames.
Creates a silent waveform measured in frames .
frame_rate_hz
u32
num_channels
u32
num_frames
u64
frame_rate_hz
u32
num_channels
u32
num_frames
u64
examples
This creates a `FloatWaveform` containing one second of silent *stereo* audio.
```
use babycat::FloatWaveform.


This creates a ` FloatWaveform ` containing one second of silent * stereo * audio . ` ` ` use babycat :: FloatWaveform .