Audacity  2.2.0
CompareAudioCommand Class Referencefinal

Returns information about the amount of audio that is about a certain threshold of difference in two selected tracks. More...

#include <CompareAudioCommand.h>

Inheritance diagram for CompareAudioCommand:
CommandImplementation Command

Public Member Functions

 CompareAudioCommand (CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
 
bool Apply (CommandExecutionContext context) override
 
- Public Member Functions inherited from CommandImplementation
void Progress (double completed)
 
void Status (const wxString &status) override
 
void Error (const wxString &message) override
 
 CommandImplementation (CommandType &type, std::unique_ptr< CommandOutputTarget > &&output)
 
virtual ~CommandImplementation ()
 
wxString GetName ()
 An instance method for getting the command name (for consistency) More...
 
CommandSignatureGetSignature ()
 Get the signature of the command. More...
 
bool SetParameter (const wxString &paramName, const wxVariant &paramValue)
 
- Public Member Functions inherited from Command
virtual ~Command ()
 

Protected Member Functions

double CompareSample (double value1, double value2)
 
- Protected Member Functions inherited from CommandImplementation
void TypeCheck (const wxString &typeName, const wxString &paramName, const wxVariant &param)
 
void CheckParam (const wxString &paramName)
 
bool GetBool (const wxString &paramName)
 
long GetLong (const wxString &paramName)
 
double GetDouble (const wxString &paramName)
 
wxString GetString (const wxString &paramName)
 

Private Member Functions

bool GetSelection (AudacityProject &proj)
 

Private Attributes

double mT0
 
double mT1
 
const WaveTrackmTrack0
 
const WaveTrackmTrack1
 

Additional Inherited Members

- Protected Attributes inherited from CommandImplementation
std::unique_ptr
< CommandOutputTarget
mOutput
 

Detailed Description

Returns information about the amount of audio that is about a certain threshold of difference in two selected tracks.

Constructor & Destructor Documentation

CompareAudioCommand::CompareAudioCommand ( CommandType type,
std::unique_ptr< CommandOutputTarget > &&  target 
)
inline

Member Function Documentation

double CompareAudioCommand::CompareSample ( double  value1,
double  value2 
)
protected

Referenced by Apply().

Member Data Documentation

double CompareAudioCommand::mT0
private

Referenced by Apply(), and GetSelection().

double CompareAudioCommand::mT1
private

Referenced by Apply(), and GetSelection().

const WaveTrack* CompareAudioCommand::mTrack0
private

Referenced by Apply(), and GetSelection().

const WaveTrack* CompareAudioCommand::mTrack1
private

Referenced by Apply(), and GetSelection().


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