4 // A short single-channel recording of an audio clip, for the delay analyzer.
17 void add_audio(const float *samples, size_t num_samples, double sample_rate, std::chrono::steady_clock::time_point frame_time);
18 double get_length_seconds() const;
20 std::unique_ptr<std::pair<float, float>[]> get_min_max_peaks(unsigned width) const;
23 mutable std::mutex mu;
24 std::vector<float> vals; // Under <mutex>.
25 double sample_rate; // Under <mutex>.
26 std::chrono::steady_clock::time_point first_sample; // Under <mutex>.