You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: history.rs
    path of file: ./repos/Ambient/crates/audio/src/source
    
    the code of the file until where you have to start completion: use std::{fmt::Debug, sync::Arc};

use circular_queue::CircularQueue;
use parking_lot::Mutex;

use crate::{Frame, Source};

pub struct History<S> {
    source: S,
    buf: Arc<Mutex<CircularQueue<Frame>>>,
    report_s
    
    pub fn new(source: S, freq: f32, buf: Arc<Mutex<CircularQueue<Frame>>>) -> Self {
        // Spacing in sample between each report
        let report_stride = (source.sample_rate() as f32 / freq).round() as usize;

        Self {
            source,
            buf,
            report_stride,
            acc: 0,
            acc_samples: Frame::ZERO,
        }
    }