![]() |
Audacity 3.2.0
|
Returns information about the amount of audio that is about a certain threshold of difference in two selected tracks. More...
#include <CompareAudioCommand.h>
Public Member Functions | |
| ComponentInterfaceSymbol | GetSymbol () const override |
| TranslatableString | GetDescription () const override |
| template<bool Const> | |
| bool | VisitSettings (SettingsVisitorBase< Const > &S) |
| bool | VisitSettings (SettingsVisitor &S) override |
| bool | VisitSettings (ConstSettingsVisitor &S) override |
| void | PopulateOrExchange (ShuttleGui &S) override |
| ManualPageID | ManualPage () override |
| bool | Apply (const CommandContext &context) override |
Public Member Functions inherited from AudacityCommand | |
| AudacityCommand () | |
| virtual | ~AudacityCommand () |
| PluginPath | GetPath () const override |
| VendorSymbol | GetVendor () const override |
| wxString | GetVersion () const override |
| ComponentInterfaceSymbol | GetSymbol () const override=0 |
| virtual TranslatableString | GetDescription () const override |
| virtual ManualPageID | ManualPage () |
| virtual bool | IsBatchProcessing () const |
| virtual void | SetBatchProcessing (bool start) |
| virtual bool | Apply (const CommandContext &WXUNUSED(context)) |
| bool | ShowInterface (wxWindow *parent, bool forceModal=false) |
| wxDialog * | CreateUI (wxWindow *parent, AudacityCommand *client) |
| bool | SaveSettingsAsString (wxString &parms) |
| bool | LoadSettingsFromString (const wxString &parms) |
| bool | DoAudacityCommand (const CommandContext &context, bool shouldPrompt=true) |
| int | MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={}) |
| virtual bool | Init () |
| virtual bool | PromptUser (AudacityProject &) |
| virtual bool | CheckWhetherSkipAudacityCommand () |
| virtual void | End () |
| virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
| virtual bool | TransferDataToWindow () |
| virtual bool | TransferDataFromWindow () |
| virtual bool | VisitSettings (SettingsVisitor &) |
| virtual bool | VisitSettings (ConstSettingsVisitor &) |
Public Member Functions inherited from ComponentInterface | |
| virtual | ~ComponentInterface () |
| virtual PluginPath | GetPath () const =0 |
| virtual ComponentInterfaceSymbol | GetSymbol () const =0 |
| virtual VendorSymbol | GetVendor () const =0 |
| virtual wxString | GetVersion () const =0 |
| virtual TranslatableString | GetDescription () const =0 |
| TranslatableString | GetName () const |
Static Public Attributes | |
| static const ComponentInterfaceSymbol | Symbol { XO("Compare Audio") } |
Protected Member Functions | |
| double | CompareSample (double value1, double value2) |
Private Member Functions | |
| bool | GetSelection (const CommandContext &context, AudacityProject &proj) |
Private Attributes | |
| double | errorThreshold |
| double | mT0 |
| double | mT1 |
| const WaveTrack * | mTrack0 |
| const WaveTrack * | mTrack1 |
Additional Inherited Members | |
Public Types inherited from AudacityCommand | |
| enum | : long { DefaultMessageBoxStyle = wxOK | wxCENTRE } |
Protected Attributes inherited from AudacityCommand | |
| ProgressDialog * | mProgress |
| wxDialog * | mUIDialog |
| wxWindow * | mUIParent |
Returns information about the amount of audio that is about a certain threshold of difference in two selected tracks.
Definition at line 26 of file CompareAudioCommand.h.
|
override |
Definition at line 119 of file CompareAudioCommand.cpp.
References WaveTrack::Channels(), CompareSample(), errorThreshold, WaveTrack::GetMaxBlockSize(), Track::GetName(), GetSelection(), limitSampleBufferSize(), WideSampleSequence::LongSamplesToTime(), min(), mT0, mT1, mTrack0, mTrack1, CommandContext::Progress(), CommandContext::project, CommandContext::Status(), WideSampleSequence::TimeToLongSamples(), and wxT().
|
protected |
Definition at line 109 of file CompareAudioCommand.cpp.
Referenced by Apply().
|
inlineoverridevirtual |
Reimplemented from AudacityCommand.
Definition at line 33 of file CompareAudioCommand.h.
References XO().
|
private |
Definition at line 75 of file CompareAudioCommand.cpp.
References CommandContext::Error(), ViewInfo::Get(), TrackList::Get(), mT0, mT1, mTrack0, mTrack1, WaveTrack::NChannels(), TrackList::Selected(), ViewInfo::selectedRegion, CommandContext::Status(), and wxT().
Referenced by Apply().
|
inlineoverridevirtual |
Implements AudacityCommand.
Definition at line 32 of file CompareAudioCommand.h.
References Symbol.
|
inlineoverridevirtual |
Reimplemented from AudacityCommand.
Definition at line 40 of file CompareAudioCommand.h.
|
override |
Definition at line 63 of file CompareAudioCommand.cpp.
References errorThreshold, S, and XXO().
|
overridevirtual |
Visit settings, if defined. false means no defined settings. Default implementation returns false
Reimplemented from AudacityCommand.
Definition at line 60 of file CompareAudioCommand.cpp.
References S.
|
overridevirtual |
Visit settings, if defined. false means no defined settings. Default implementation returns false
Reimplemented from AudacityCommand.
Definition at line 57 of file CompareAudioCommand.cpp.
References S.
| bool CompareAudioCommand::VisitSettings | ( | SettingsVisitorBase< Const > & | S | ) |
Definition at line 53 of file CompareAudioCommand.cpp.
References errorThreshold, S, and wxT().
|
private |
Definition at line 45 of file CompareAudioCommand.h.
Referenced by Apply(), PopulateOrExchange(), and VisitSettings().
|
private |
Definition at line 46 of file CompareAudioCommand.h.
Referenced by Apply(), and GetSelection().
|
private |
Definition at line 46 of file CompareAudioCommand.h.
Referenced by Apply(), and GetSelection().
|
private |
Definition at line 47 of file CompareAudioCommand.h.
Referenced by Apply(), and GetSelection().
|
private |
Definition at line 48 of file CompareAudioCommand.h.
Referenced by Apply(), and GetSelection().
|
static |
Definition at line 29 of file CompareAudioCommand.h.
Referenced by GetSymbol().