mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 14:32:58 +02:00
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
This commit is contained in:
53
src/commands/CompareAudioCommand.h
Normal file
53
src/commands/CompareAudioCommand.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity - A Digital Audio Editor
|
||||
Copyright 1999-2009 Audacity Team
|
||||
License: wxwidgets
|
||||
|
||||
Dan Horgan
|
||||
|
||||
******************************************************************//**
|
||||
|
||||
\file CompareAudioCommand.h
|
||||
\brief Contains declaration of CompareAudioCommand and CompareAudioCommandType
|
||||
classes
|
||||
|
||||
*//*******************************************************************/
|
||||
|
||||
#ifndef __COMPAREAUDIOCOMMAND__
|
||||
#define __COMPAREAUDIOCOMMAND__
|
||||
|
||||
#include "Command.h"
|
||||
#include "CommandType.h"
|
||||
|
||||
class WaveTrack;
|
||||
|
||||
class CompareAudioCommandType : public CommandType
|
||||
{
|
||||
public:
|
||||
virtual wxString BuildName();
|
||||
virtual void BuildSignature(CommandSignature &signature);
|
||||
virtual Command *Create(CommandOutputTarget *target);
|
||||
};
|
||||
|
||||
class CompareAudioCommand : public CommandImplementation
|
||||
{
|
||||
private:
|
||||
double mT0, mT1;
|
||||
WaveTrack *mTrack0;
|
||||
WaveTrack *mTrack1;
|
||||
|
||||
// Update member variables with project selection data (and validate)
|
||||
bool GetSelection(AudacityProject &proj);
|
||||
|
||||
protected:
|
||||
virtual double CompareSample(double value1, double value2);
|
||||
|
||||
public:
|
||||
CompareAudioCommand(CommandType &type, CommandOutputTarget *target)
|
||||
: CommandImplementation(type, target)
|
||||
{ }
|
||||
virtual bool Apply(CommandExecutionContext context);
|
||||
};
|
||||
|
||||
#endif /* End of include guard: __COMPAREAUDIOCOMMAND__ */
|
Reference in New Issue
Block a user