Audacity 3.2.0
DecimatingMirAudioReader.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 DecimatingMirAudioReader.h
7
8 Matthieu Hodgkinson
9
10**********************************************************************/
11#pragma once
12
13#include "MirTypes.h"
14
15#include <vector>
16
17namespace MIR
18{
30{
31public:
32 explicit DecimatingMirAudioReader(const MirAudioReader& reader);
33
34 double GetSampleRate() const override;
35 long long GetNumSamples() const override;
36 void
37 ReadFloats(float* buffer, long long start, size_t numFrames) const override;
38
39private:
42 mutable std::vector<float> mBuffer;
43};
44} // namespace MIR
Our MIR operations do not need the full 44.1 or 48kHz resolution typical of audio files....
long long GetNumSamples() const override
void ReadFloats(float *buffer, long long start, size_t numFrames) const override
DecimatingMirAudioReader(const MirAudioReader &reader)