Audacity 3.2.0
Public Member Functions | List of all members
MIR::MirAudioReader Class Referenceabstract

#include <MirTypes.h>

Inheritance diagram for MIR::MirAudioReader:
[legend]

Public Member Functions

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
 

Detailed Description

Definition at line 113 of file MirTypes.h.

Constructor & Destructor Documentation

◆ ~MirAudioReader()

virtual MIR::MirAudioReader::~MirAudioReader ( )
virtualdefault

Member Function Documentation

◆ GetDuration()

double MIR::MirAudioReader::GetDuration ( ) const
inline

Definition at line 120 of file MirTypes.h.

121 {
122 return GetSampleRate() == 0 ? 0. : GetNumSamples() / GetSampleRate();
123 }
virtual long long GetNumSamples() const =0
virtual double GetSampleRate() const =0

References GetNumSamples(), and GetSampleRate().

Referenced by MIR::GetProjectSyncInfo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNumSamples()

virtual long long MIR::MirAudioReader::GetNumSamples ( ) const
pure virtual

Implemented in MIR::DecimatingMirAudioReader, MIR::EmptyMirAudioReader, MIR::SquareWaveMirAudioReader, MIR::anonymous_namespace{StftFrameProviderTests.cpp}::TestMirAudioReader, MIR::WavMirAudioReader, and ClipMirAudioReader.

Referenced by MIR::GetChecksum(), GetDuration(), and MIR::DecimatingMirAudioReader::GetNumSamples().

Here is the caller graph for this function:

◆ GetSampleRate()

virtual double MIR::MirAudioReader::GetSampleRate ( ) const
pure virtual

◆ ReadFloats()

virtual void MIR::MirAudioReader::ReadFloats ( float *  buffer,
long long  where,
size_t  numFrames 
) const
pure virtual

Implemented in MIR::DecimatingMirAudioReader, MIR::EmptyMirAudioReader, MIR::WavMirAudioReader, MIR::SquareWaveMirAudioReader, MIR::anonymous_namespace{StftFrameProviderTests.cpp}::TestMirAudioReader, and ClipMirAudioReader.

Referenced by MIR::GetChecksum(), MIR::StftFrameProvider::GetNextFrame(), and MIR::DecimatingMirAudioReader::ReadFloats().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: