Audacity 3.2.0
Classes | Public Member Functions | Public Attributes | List of all members
MIR::FakeAnalyzedAudioClip Class Referencefinal

#include <MirFakes.h>

Inheritance diagram for MIR::FakeAnalyzedAudioClip:
[legend]
Collaboration diagram for MIR::FakeAnalyzedAudioClip:
[legend]

Classes

struct  Params
 

Public Member Functions

 FakeAnalyzedAudioClip (std::optional< Params > params)
 
 ~FakeAnalyzedAudioClip () override=default
 
const std::optional< MIR::ProjectSyncInfo > & GetSyncInfo () const override
 
void SetRawAudioTempo (double tempo) override
 
void Synchronize () override
 
- Public Member Functions inherited from MIR::AnalyzedAudioClip
virtual const std::optional< MIR::ProjectSyncInfo > & GetSyncInfo () const =0
 
virtual void SetRawAudioTempo (double tempo)=0
 
virtual void Synchronize ()=0
 
virtual ~AnalyzedAudioClip ()=default
 

Public Attributes

const std::optional< MIR::ProjectSyncInfosyncInfo
 
std::optional< double > rawAudioTempo
 
bool synchronizeCalled = false
 

Detailed Description

Definition at line 100 of file MirFakes.h.

Constructor & Destructor Documentation

◆ FakeAnalyzedAudioClip()

MIR::FakeAnalyzedAudioClip::FakeAnalyzedAudioClip ( std::optional< Params params)
inline

Definition at line 109 of file MirFakes.h.

110 : syncInfo { params.has_value() ? std::make_optional<ProjectSyncInfo>(
111 { params->tempo, params->method }) :
112 std::nullopt }
113 {
114 }
EffectDistortionSettings params
const std::optional< MIR::ProjectSyncInfo > syncInfo
Definition: MirFakes.h:118

References params.

◆ ~FakeAnalyzedAudioClip()

MIR::FakeAnalyzedAudioClip::~FakeAnalyzedAudioClip ( )
overridedefault

Member Function Documentation

◆ GetSyncInfo()

const std::optional< MIR::ProjectSyncInfo > & MIR::FakeAnalyzedAudioClip::GetSyncInfo ( ) const
inlineoverridevirtual

Implements MIR::AnalyzedAudioClip.

Definition at line 122 of file MirFakes.h.

123 {
124 return syncInfo;
125 }

◆ SetRawAudioTempo()

void MIR::FakeAnalyzedAudioClip::SetRawAudioTempo ( double  tempo)
inlineoverridevirtual

Implements MIR::AnalyzedAudioClip.

Definition at line 127 of file MirFakes.h.

128 {
129 rawAudioTempo = tempo;
130 }
std::optional< double > rawAudioTempo
Definition: MirFakes.h:119

◆ Synchronize()

void MIR::FakeAnalyzedAudioClip::Synchronize ( )
inlineoverridevirtual

Implements MIR::AnalyzedAudioClip.

Definition at line 132 of file MirFakes.h.

133 {
134 synchronizeCalled = true;
135 }

Member Data Documentation

◆ rawAudioTempo

std::optional<double> MIR::FakeAnalyzedAudioClip::rawAudioTempo

Definition at line 119 of file MirFakes.h.

◆ synchronizeCalled

bool MIR::FakeAnalyzedAudioClip::synchronizeCalled = false

Definition at line 120 of file MirFakes.h.

◆ syncInfo

const std::optional<MIR::ProjectSyncInfo> MIR::FakeAnalyzedAudioClip::syncInfo

Definition at line 118 of file MirFakes.h.


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