Audacity 3.2.0
|
#include <ClipMirAudioReader.h>
Public Member Functions | |
ClipMirAudioReader (std::optional< LibFileFormats::AcidizerTags > tags, std::string filename, WaveTrack &singleClipWaveTrack) | |
double | GetSampleRate () const override |
long long | GetNumSamples () const override |
void | ReadFloats (float *buffer, long long where, 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 |
Public Attributes | |
const std::optional< LibFileFormats::AcidizerTags > | tags |
const std::string | filename |
const WaveTrack::IntervalHolder | clip |
Private Types | |
using | ChannelCache = std::array< std::optional< AudioSegmentSampleView >, 2 > |
Private Member Functions | |
void | AddChannel (size_t iChannel, float *buffer, sampleCount start, size_t len) const |
Private Attributes | |
const std::shared_ptr< const ClipInterface > | mClip |
std::array< ChannelCache, 2 > | mCache |
std::array< bool, 2 > | mUseFirst { true, true } |
Definition at line 23 of file ClipMirAudioReader.h.
|
private |
Definition at line 53 of file ClipMirAudioReader.h.
ClipMirAudioReader::ClipMirAudioReader | ( | std::optional< LibFileFormats::AcidizerTags > | tags, |
std::string | filename, | ||
WaveTrack & | singleClipWaveTrack | ||
) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 17 of file ClipMirAudioReader.cpp.
|
private |
Definition at line 49 of file ClipMirAudioReader.cpp.
References anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, mCache, mClip, and mUseFirst.
Referenced by ReadFloats().
|
overridevirtual |
Implements MIR::MirAudioReader.
Definition at line 32 of file ClipMirAudioReader.cpp.
References mClip.
|
overridevirtual |
Implements MIR::MirAudioReader.
Definition at line 27 of file ClipMirAudioReader.cpp.
References mClip.
|
overridevirtual |
where >= 0
where + numFrames <= GetNumSamples()
Implements MIR::MirAudioReader.
Definition at line 37 of file ClipMirAudioReader.cpp.
References AddChannel(), and mClip.
const WaveTrack::IntervalHolder ClipMirAudioReader::clip |
Definition at line 32 of file ClipMirAudioReader.h.
const std::string ClipMirAudioReader::filename |
Definition at line 31 of file ClipMirAudioReader.h.
|
mutableprivate |
Definition at line 54 of file ClipMirAudioReader.h.
Referenced by AddChannel().
|
private |
Definition at line 48 of file ClipMirAudioReader.h.
Referenced by AddChannel(), GetNumSamples(), GetSampleRate(), and ReadFloats().
|
mutableprivate |
Definition at line 55 of file ClipMirAudioReader.h.
Referenced by AddChannel().
const std::optional<LibFileFormats::AcidizerTags> ClipMirAudioReader::tags |
Definition at line 30 of file ClipMirAudioReader.h.