Audacity 3.2.0
|
#include <WavMirAudioReader.h>
Public Member Functions | |
WavMirAudioReader (const std::string &filename, std::optional< double > timeLimit={}) | |
double | GetSampleRate () const override |
long long | GetNumSamples () const override |
void | ReadFloats (float *buffer, long long start, size_t numFrames) const override |
Public Member Functions inherited from MIR::MirAudioReader | |
virtual double | GetSampleRate () const =0 |
virtual long long | GetNumSamples () const =0 |
virtual void | ReadFloats (float *buffer, long long where, size_t numFrames) const =0 |
double | GetDuration () const |
virtual | ~MirAudioReader ()=default |
Private Attributes | |
const std::vector< float > | mSamples |
const double | mSampleRate = 0. |
Definition at line 21 of file WavMirAudioReader.h.
MIR::WavMirAudioReader::WavMirAudioReader | ( | const std::string & | filename, |
std::optional< double > | timeLimit = {} |
||
) |
Definition at line 21 of file WavMirAudioReader.cpp.
References details::begin(), staffpad::vo::copy(), mSampleRate, and mSamples.
|
overridevirtual |
Implements MIR::MirAudioReader.
Definition at line 50 of file WavMirAudioReader.cpp.
References mSamples.
|
overridevirtual |
Implements MIR::MirAudioReader.
Definition at line 45 of file WavMirAudioReader.cpp.
References mSampleRate.
|
overridevirtual |
Implements MIR::MirAudioReader.
Definition at line 55 of file WavMirAudioReader.cpp.
References staffpad::vo::copy(), and mSamples.
|
private |
Definition at line 34 of file WavMirAudioReader.h.
Referenced by GetSampleRate(), and WavMirAudioReader().
|
private |
Definition at line 33 of file WavMirAudioReader.h.
Referenced by GetNumSamples(), ReadFloats(), and WavMirAudioReader().