#[allow(dead_code)]
#[derive(Clone, Debug)]
pub struct AudioFrame {
pub spectrum: Vec<f32>,
pub waveform: Vec<f32>,
pub rms_left: f32,
pub rms_right: f32,
pub peak_left: f32,
pub peak_right: f32,
}
impl Default for AudioFrame {
fn default() -> Self {
Self {
spectrum: vec![0.0; 64],
waveform: vec![0.0; 256],
rms_left: 0.0,
rms_right: 0.0,
peak_left: 0.0,
peak_right: 0.0,
}
}
}