Audacity 3.2.0
Namespaces | Functions | Variables
CompareAudioCommand.cpp File Reference

Contains definitions for CompareAudioCommand class. More...

#include "CompareAudioCommand.h"
#include "LoadCommands.h"
#include "ViewInfo.h"
#include "../WaveTrack.h"
#include <float.h>
#include <wx/intl.h>
#include "../Shuttle.h"
#include "../ShuttleGui.h"
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/valnum.h"
#include "CommandContext.h"
Include dependency graph for CompareAudioCommand.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{CompareAudioCommand.cpp}
 

Functions

void RegisterCompareAudio (Registrar &R)
 
int min (int a, int b)
 

Variables

BuiltinCommandsModule::Registration< CompareAudioCommandanonymous_namespace{CompareAudioCommand.cpp}::reg
 

Detailed Description

Contains definitions for CompareAudioCommand class.

Definition in file CompareAudioCommand.cpp.

Function Documentation

◆ min()

int min ( int  a,
int  b 
)
inline

Definition at line 112 of file CompareAudioCommand.cpp.

113{
114 return (a < b) ? a : b;
115}

Referenced by NumericConverter::Adjust(), SelectHandle::AdjustFreqSelection(), NewDefaultPlaybackPolicy::AdvancedTrackTime(), ScrubbingPlaybackPolicy::AdvancedTrackTime(), AudioIO::AllocateBuffers(), EffectNormalize::AnalyseTrack(), WaveClip::Append(), MemoryStream::Chunk::Append(), CompareAudioCommand::Apply(), EffectNoiseReduction::Worker::ApplyFreqSmoothing(), SetTrackVisualsCommand::ApplyInner(), AColor::Bevel2(), LV2Effect::BuildPlain(), SqliteSampleBlock::CalcSummary(), CheckInteger(), Exporter::CheckMix(), Ruler::Updater::ChooseFonts(), Envelope::ClampValue(), EffectNoiseReduction::Worker::Classify(), RingBuffer::Clear(), WaveClip::ClearAndAddCutLine(), WaveTrack::ClearAndPaste(), WaveClip::ClearSequence(), ClipParameters::ClipParameters(), Envelope::CollapseRegion(), RecordingPrefs::Commit(), Constrain(), NumericConverter::ControlsToValue(), WaveformSettings::ConvertToActualDBRange(), SpectrogramSettings::ConvertToEnumeratedWindowSizes(), Sequence::Copy(), WaveTrack::Copy(), EffectDistortion::CubicTable(), audacity::network_manager::anonymous_namespace{CurlResponse.cpp}::DataStreamRead(), RingBuffer::Discard(), WaveTrack::Disjoin(), Sequence::DoAppend(), anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove(), AdornedRulerPanel::DoDrawMarks(), SqliteSampleBlock::DoGetMinMaxRMS(), WaveformVRulerControls::DoHandleWheelRotation(), SpectrumVRulerControls::DoHandleWheelRotation(), LabelTrackView::DoKeyDown(), EffectTruncSilence::DoRemoval(), anonymous_namespace{TrackMenus.cpp}::DoSortTracks(), ShuttleGuiBase::DoTieSlider(), ShuttleGuiBase::DoTieSpinCtrl(), WaveformVRulerControls::DoUpdateVRuler(), SpectrumVZoomHandle::DoZoom(), WaveformVZoomHandle::DoZoom(), ProjectWindow::DoZoomFit(), SubViewAdjustHandle::Drag(), SampleHandle::Drag(), AudioIoCallback::DrainInputBuffers(), AudioIO::DrainRecordBuffers(), ZoomHandle::Draw(), TextEditHelper::Draw(), TrackArt::DrawClipAffordance(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), anonymous_namespace{WaveformView.cpp}::DrawMinMaxRMS(), anonymous_namespace{AColor.cpp}::DrawNinePatch(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), TrackVRulerControls::DrawZooming(), EnumValueSymbols::EnumValueSymbols(), EffectDistortion::ExponentialTable(), ExtractFloats(), AudioIO::FillPlayBuffers(), Sequence::FindBlock(), findCorrection(), anonymous_namespace{BrushHandle.cpp}::findMaxRatio(), anonymous_namespace{SelectHandle.cpp}::findMaxRatio(), SampleHandle::FindSampleEditingLevel(), anonymous_namespace{Scrubbing.cpp}::FindScrubbingSpeed(), anonymous_namespace{Scrubbing.cpp}::FindSeekSpeed(), anonymous_namespace{SpectrumView.cpp}::findValue(), EffectNoiseReduction::Worker::GatherStatistics(), Sequence::Get(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Get(), WaveTrack::Get(), RingBuffer::Get(), SqliteSampleBlock::GetBlob(), Effect::GetBounds(), ClipParameters::GetClipRect(), AudioIO::GetCommonlyAvailCapture(), AudioIO::GetCommonlyFreePlayback(), AudioIoCallback::GetCommonlyReadyPlayback(), WaveTrack::GetDisplayBounds(), WaveTrack::GetEnvelopeValues(), SampleTrackCache::GetFloats(), NumericConverter::GetFormatIndex(), ProjectFileIO::GetFreeDiskSpace(), PlayRegion::GetLastActiveStart(), Sequence::GetMinMax(), TrackList::GetMinOffset(), TracksPrefs::GetPinnedHeadPositionPreference(), PlaybackPolicy::GetPlaybackSlice(), NewDefaultPlaybackPolicy::GetPlaybackSlice(), anonymous_namespace{ProjectAudioManager.cpp}::CutPreviewPlaybackPolicy::GetPlaybackSlice(), anonymous_namespace{AdornedRulerPanel.cpp}::GetPlayHeadFraction(), EffectNoiseRemoval::GetProfile(), WaveClipSpectrumCache::GetSpectrogram(), WaveTrack::GetSpectrumBounds(), PlayRegion::GetStart(), TrackList::GetStartTime(), StretchHandle::GetT1(), RingBuffer::GetUnflushed(), GetWaveDisplay(), WaveClipWaveformCache::GetWaveDisplay(), GetWaveYPos(), ProjectWindow::GetZoomOfToFit(), GuessFloatFormats(), TrackView::HandleXMLAttribute(), StretchHandle::HitTest(), PCMImportFileHandle::Import(), EffectAmplify::Init(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Data::Init(), LV2Effect::InitializePlugin(), Envelope::InsertOrReplaceRelative(), LadspaEffectMeter::LadspaEffectMeter(), limitSampleBufferSize(), anonymous_namespace{GetWaveDisplay.cpp}::MinMaxSumsq::MinMaxSumsq(), Mixer::MixSameRate(), Mixer::MixVariableRates(), Envelope::MoveDragPoint(), SelectHandle::MoveSnappingFreqSelection(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), anonymous_namespace{SelectMenus.cpp}::NearestZeroCrossing(), NoteTrackDisplayData::NoteTrackDisplayData(), TimerRecordDialog::OnDatePicker_End(), TimerRecordDialog::OnDatePicker_Start(), TextEditHelper::OnKeyDown(), NumericTextCtrl::OnKeyDown(), ProjectWindow::OnScrollRight(), ProjectWindow::OnScrollRightButton(), SelectActions::Handler::OnSelectCursorStoredCursor(), SpectrumVRulerMenuTable::OnSpectrumScaleType(), ScrubbingOverlay::OnTimer(), TimerRecordDialog::OnTimeText_Duration(), WaveformVRulerMenuTable::OnWaveformScaleType(), Envelope::PasteEnvelope(), ProjectAudioManager::PlayPlayRegion(), ApplyMacroDialog::Populate(), MacrosWindow::Populate(), SpecCache::Populate(), PluginRegistrationDialog::PopulateOrExchange(), SpectrumPrefs::PopulatePaddingChoices(), LadspaEffect::Validator::PopulateUI(), EffectBase::Preview(), TrackSpectrumTransformer::Process(), NyquistEffect::Process(), EffectRepair::Process(), Mixer::Process(), RealtimeEffectState::Process(), EffectNoiseReduction::Worker::Process(), EffectReverb::Instance::ProcessBlock(), NyquistEffect::ProcessOne(), EffectClickRemoval::ProcessOne(), EffectTwoPassSimpleMono::ProcessOne(), EffectNoiseReduction::Worker::Processor(), SpectrumTransformer::ProcessSamples(), PerTrackEffect::ProcessTrack(), RingBuffer::Put(), BufferedStreamReader::Read(), CommandParameters::ReadAndVerify(), AdornedRulerPanel::ReCreateButtons(), AdornedRulerPanel::RegionRectangle(), EffectNoiseRemoval::RemoveNoise(), Mixer::Reposition(), fast_float::round(), ProjectWindow::ScrollingLowerBoundTime(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), WaveTrack::Set(), ViewInfo::SetBeforeScreenWidth(), LV2Effect::SetBlockSize(), VSTEffect::SetBlockSize(), VST3Effect::SetBlockSize(), EffectEqualization::setCurve(), EffectScienFilterPanel::SetDbRange(), WaveTrack::SetDisplayBounds(), Envelope::SetDragPoint(), ProjectWindow::SetHorizontalThumb(), AdornedRulerPanel::SetNumGuides(), TracksPrefs::SetPinnedHeadPositionPreference(), Ruler::SetRange(), Sequence::SetSamples(), WaveTrack::SetSpectrumBounds(), Envelope::SetTrackLen(), ZoomInfo::SetZoom(), WaveTrack::Silence(), SelectHandle::SnapCenterOnce(), SpectralDataManager::Worker::SnappingProcessor(), SolveIntegrateInverseInterpolated(), ProjectSelectionManager::SSBL_ModifySpectralSelection(), SelectHandle::StartSnappingFreqSelection(), AudioIO::StartStream(), StretchHandle::Stretch(), TagsEditorDialog::TagsEditorDialog(), TEMPLATE_TEST_CASE(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSlider(), ShuttleGuiBase::TieSlider(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSpinCtrl(), ShuttleGuiBase::TieSpinCtrl(), TimerRecordDialog::TransferDataFromWindow(), AudioIoCallback::TransportState::TransportState(), MeterPanel::UpdateDisplay(), EffectBassTreble::UpdateGain(), Ruler::Updater::UpdateLinear(), Ruler::Updater::UpdateNonlinear(), MeterPanel::UpdatePrefs(), AdornedRulerPanel::UpdateQuickPlayPos(), AdornedRulerPanel::UpdateRects(), TimeTrackVRulerControls::UpdateRuler(), SpectrogramSettings::Validate(), WaveformSettings::Validate(), UndoManager::VisitStates(), anonymous_namespace{VST3Effect.cpp}::VST3ProcessBlock(), PasteTimeWarper::Warp(), and FFmpegImportFileHandle::WriteData().

◆ RegisterCompareAudio()

void RegisterCompareAudio ( Registrar R)

Definition at line 43 of file CompareAudioCommand.cpp.

43 {
44 R.AddCommand( std::make_unique<CompareAudioCommand>() );
45// std::unique_ptr<CommandOutputTargets> &&target
46// return std::make_shared<CompareAudioCommand>(*this, std::move(target));
47
48}
virtual void AddCommand(std::unique_ptr< AudacityCommand > &&WXUNUSED(command))
Definition: Registrar.h:46

References Registrar::AddCommand().

Here is the call graph for this function: