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

Contains definitions for CompareAudioCommand class. More...

#include "CompareAudioCommand.h"
#include "CommandDispatch.h"
#include "MenuRegistry.h"
#include "../CommonCommandFlags.h"
#include "LoadCommands.h"
#include "ViewInfo.h"
#include "WaveTrack.h"
#include <float.h>
#include "SettingsVisitor.h"
#include "ShuttleGui.h"
#include "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
 
AttachedItem anonymous_namespace{CompareAudioCommand.cpp}::sAttachment
 

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 114 of file CompareAudioCommand.cpp.

115{
116 return (a < b) ? a : b;
117}

Referenced by EqualizationBase::Task::AccumulateSamples(), EffectStage::Acquire(), MixerSource::Acquire(), WideSampleSource::Acquire(), FrameStatistics::Section::AddEvent(), SelectHandle::AdjustFreqSelection(), DefaultPlaybackPolicy::AdvancedTrackTime(), ScrubbingPlaybackPolicy::AdvancedTrackTime(), AudioIO::AllocateBuffers(), NormalizeBase::AnalyseTrack(), Sequence::Append(), MemoryStream::Chunk::Append(), CompareAudioCommand::Apply(), PixelSampleMapper::applyCorrection(), NoiseReductionBase::Worker::ApplyFreqSmoothing(), WaveTrack::ApplyPitchAndSpeed(), AColor::Bevel2(), LV2Editor::BuildPlain(), SqliteSampleBlock::CalcSummary(), CheckInteger(), Ruler::ChooseFonts(), Envelope::ClampValue(), NoiseReductionBase::Worker::Classify(), RingBuffer::Clear(), WaveClip::ClearAndAddCutLine(), WaveTrack::ClearAndPasteAtSameTempo(), AudioGraph::Buffers::ClearBuffer(), WaveClip::ClearSequence(), ClipParameters::ClipParameters(), Envelope::CollapseRegion(), RecordingPrefs::Commit(), audacity::cloud::audiocom::sync::anonymous_namespace{WavPackCompressor.cpp}::Exporter::Compress(), anonymous_namespace{Mix.cpp}::ConsiderStages(), Constrain(), WaveformSettings::ConvertToActualDBRange(), SpectrogramSettings::ConvertToEnumeratedWindowSizes(), Sequence::Copy(), LadspaEffectBase::CopySettingsContents(), LV2EffectBase::CopySettingsContents(), ChannelAttachmentsBase::CopyTo(), WaveClip::CountSamples(), DistortionBase::Instance::CubicTable(), AudioGraph::Buffers::Discard(), RingBuffer::Discard(), WaveTrack::Disjoin(), AudioSegmentSampleView::DoAdd(), Sequence::DoAppend(), anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove(), AdornedRulerPanel::DoDrawMarks(), SqliteSampleBlock::DoGetMinMaxRMS(), WaveformVRulerControls::DoHandleWheelRotation(), SpectrumVRulerControls::DoHandleWheelRotation(), Scrubber::DoKeyboardScrub(), LabelTrackView::DoKeyDown(), TruncSilenceBase::DoRemoval(), Scrubber::DoScrub(), anonymous_namespace{TrackMenus.cpp}::DoSortTracks(), ShuttleGuiBase::DoTieSlider(), ShuttleGuiBase::DoTieSpinControl(), ShuttleGuiBase::DoTieSpinCtrl(), WaveformVRulerControls::DoUpdateVRuler(), SpectrumVZoomHandle::DoZoom(), WaveformVZoomHandle::DoZoom(), SubViewAdjustHandle::Drag(), SampleHandle::Drag(), AudioIoCallback::DrainInputBuffers(), AudioIO::DrainRecordBuffers(), ZoomHandle::Draw(), TextEditHelper::Draw(), TrackArt::DrawClipAffordance(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), AColor::DrawHStretch(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), anonymous_namespace{AColor.cpp}::DrawNinePatch(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), ChannelVRulerControls::DrawZooming(), EffectPreview(), EnumValueSymbols::EnumValueSymbols(), DistortionBase::Instance::ExponentialTable(), ExtractFloats(), anonymous_namespace{WaveDataCache.cpp}::AppendBufferHelper::FillBlocksFromAppendBuffer(), AudioIO::FillPlayBuffers(), Sequence::FindBlock(), staffpad::vo::findMaxElement(), 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(), NoiseReductionBase::Worker::GatherStatistics(), Sequence::Get(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Get(), RingBuffer::Get(), SqliteSampleBlock::GetBlob(), SpectrogramBounds::GetBounds(), Effect::GetBounds(), ClipParameters::GetClipRect(), AudioIO::GetCommonlyFreePlayback(), ContrastBase::GetDB(), WaveformScale::GetDisplayBounds(), WaveTrack::GetEnvelopeValues(), ProjectFileIO::GetFreeDiskSpace(), Scrubber::GetKeyboardScrubbingSpeed(), PlayRegion::GetLastActiveStart(), anonymous_namespace{WaveClipAdjustBorderHandle.cpp}::GetLeftAdjustLimit(), Sequence::GetMinMax(), WaveClip::GetMinMax(), MIR::StftFrameProvider::GetNextFrame(), WaveTrack::GetOne(), TracksPrefs::GetPinnedHeadPositionPreference(), PlaybackPolicy::GetPlaybackSlice(), DefaultPlaybackPolicy::GetPlaybackSlice(), anonymous_namespace{ProjectAudioManager.cpp}::CutPreviewPlaybackPolicy::GetPlaybackSlice(), anonymous_namespace{ClipPitchAndSpeedButtonHandle.cpp}::GetPlaybackSpeedText(), anonymous_namespace{AdornedRulerPanel.cpp}::GetPlayHeadFraction(), DanielRudrich::LookAheadGainReduction::getProcessPositions(), AudioGraph::Buffers::GetReadPosition(), DanielRudrich::LookAheadGainReduction::getReadPositions(), anonymous_namespace{WaveTrack.cpp}::GetRenderedCopy(), anonymous_namespace{WaveClipAdjustBorderHandle.cpp}::GetRightAdjustLimit(), WaveChannelUtilities::GetRMS(), anonymous_namespace{WaveChannelUtilities.cpp}::GetSampleAccessArgs(), StaffPadTimeAndPitch::GetSamples(), WaveChannel::GetSampleView(), WaveClip::GetSampleView(), WaveClipSpectrumCache::GetSpectrogram(), PlayRegion::GetStart(), TrackList::GetStartTime(), WaveCacheSampleBlock::GetSummary(), StretchHandle::GetT1(), RingBuffer::GetUnflushed(), GetWaveYPos(), DanielRudrich::LookAheadGainReduction::getWritePositions(), GuessFloatFormats(), ChannelView::HandleXMLAttribute(), StretchHandle::HitTest(), PCMImportFileHandle::Import(), AmplifyBase::Init(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Data::Init(), CompressorProcessor::Init(), StaffPadTimeAndPitch::InitializeStretcher(), Envelope::InsertOrReplaceRelative(), ReverbBase::Instance::InstanceProcess(), graphics::Color::Lerp(), limitSampleBufferSize(), LV2Ports::LV2Ports(), anonymous_namespace{DynamicRangeProcessorEditor.cpp}::MapExponentially(), anonymous_namespace{DynamicRangeProcessorEditor.cpp}::MapLogarithmically(), Scrubber::MaybeStartScrubbing(), sampleCount::min(), MixerSource::MixSameRate(), MixerSource::MixVariableRates(), SpectralSelectionBar::ModifySpectralSelection(), ProjectSelectionManager::ModifySpectralSelection(), Envelope::MoveDragPoint(), SelectHandle::MoveSnappingFreqSelection(), anonymous_namespace{SelectMenus.cpp}::NearestZeroCrossing(), NoteTrackDisplayData::NoteTrackDisplayData(), TimerRecordDialog::OnDatePicker_End(), TimerRecordDialog::OnDatePicker_Start(), ExportAudioDialog::OnExport(), TextEditHelper::OnKeyDown(), NumericTextCtrl::OnKeyDown(), audacity::cloud::audiocom::UserImage::OnPaint(), DynamicRangeProcessorHistoryPanel::OnPaint(), anonymous_namespace{TransportMenus.cpp}::OnPunchAndRoll(), Viewport::OnScrollRight(), Viewport::OnScrollRightButton(), SelectActions::Handler::OnSelectCursorStoredCursor(), SpectrumVRulerMenuTable::OnSpectrumScaleType(), ScrubbingOverlay::OnTimer(), CompressionMeterPanel::OnTimer(), TimerRecordDialog::OnTimeText_Duration(), WaveformVRulerMenuTable::OnWaveformScaleType(), Envelope::PasteEnvelope(), WaveBitmapCache::LookupHelper::PerformLookup(), ProjectAudioManager::PlayPlayRegion(), ApplyMacroDialog::Populate(), MacrosWindow::Populate(), SpecCache::Populate(), ExportOptionsHandler::PopulateOptions(), SpectrumPrefs::PopulatePaddingChoices(), LadspaEditor::PopulateUI(), RealtimeEffectState::Process(), CompressorProcessor::Process(), VST3Wrapper::Process(), TrackSpectrumTransformer::Process(), ChangeSpeedBase::Process(), ClickRemovalBase::Process(), FindClippingBase::Process(), LoudnessBase::Process(), NormalizeBase::Process(), Repair::Process(), NyquistBase::Process(), NoiseReductionBase::Worker::Process(), OpusExportProcessor::Process(), anonymous_namespace{WaveDataCache.cpp}::processBlock(), ClickRemovalBase::ProcessOne(), NyquistBase::ProcessOne(), EffectTwoPassSimpleMono::ProcessOne(), NoiseReductionBase::Worker::Processor(), EffectTwoPassSimpleMono::ProcessPass(), PerTrackEffect::ProcessPass(), AudioIO::ProcessPlaybackSlices(), SpectrumTransformer::ProcessSamples(), SpectralDataManager::ProcessTracks(), TimeAndPitchRealSource::Pull(), RingBuffer::Put(), audacity::network_manager::anonymous_namespace{RequestPayload.cpp}::MemoryRequestPayloadStream::Read(), BufferedStreamReader::Read(), audacity::network_manager::anonymous_namespace{MultipartData.cpp}::ByteBufferPart::Read(), FifoBuffer::Read(), CommandParameters::ReadAndVerify(), audacity::sqlite::Row::ReadData(), AdornedRulerPanel::ReCreateButtons(), RegenerateLinearDBValues(), AdornedRulerPanel::RegionRectangle(), anonymous_namespace{LowlitClipButton.cpp}::RemoveSpaceReservedForTitle(), anonymous_namespace{FormantShifter.cpp}::ResampleFreqDomain(), WaveTrackUtilities::Reverse(), fast_float::round(), graphics::Color::Scale(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), WaveChannel::Set(), LV2Instance::SetBlockSize(), VSTInstance::SetBlockSize(), VST3Instance::SetBlockSize(), SpectrogramBounds::SetBounds(), EqualizationCurvesList::setCurve(), EffectScienFilterPanel::SetDbRange(), WaveformScale::SetDisplayBounds(), Envelope::SetDragPoint(), WaveClipUtilities::SetFloatsFromTime(), WaveChannelUtilities::SetFloatsWithinTimeRange(), SpinControl::SetMinValue(), anonymous_namespace{VST3ParametersWindow.cpp}::VST3DiscreteParameter::SetNormalizedValue(), AdornedRulerPanel::SetNumGuides(), TracksPrefs::SetPinnedHeadPositionPreference(), Ruler::SetRange(), Sequence::SetSamples(), Envelope::SetTrackLen(), ZoomInfo::SetZoom(), WaveTrack::Silence(), SelectHandle::SnapCenterOnce(), SpectralDataManager::Worker::SnappingProcessor(), SolveIntegrateInverseInterpolated(), SpinControl::SpinControl(), SelectHandle::StartSnappingFreqSelection(), AudioIO::StartStream(), StretchHandle::Stretch(), TagsEditorDialog::TagsEditorDialog(), TEMPLATE_TEST_CASE(), TEST_CASE(), CustomUpdaterValue::TickCustom(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSlider(), ShuttleGuiBase::TieSlider(), ShuttleGuiBase::TieSpinControl(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSpinCtrl(), ShuttleGuiBase::TieSpinCtrl(), TimerRecordDialog::TransferDataFromWindow(), RingBuffer::Unput(), DownwardMeterValueProvider::Update(), LinearUpdater::Update(), LogarithmicUpdater::Update(), MeterPanel::UpdateDisplay(), SampleFormats::UpdateEffective(), EffectBassTreble::Editor::UpdateGain(), UpdatePopupDialog::UpdatePopupDialog(), MeterPanel::UpdatePrefs(), AdornedRulerPanel::UpdateQuickPlayPos(), AdornedRulerPanel::UpdateRects(), audacity::cloud::audiocom::sync::anonymous_namespace{WavPackCompressor.cpp}::UpdateRMS(), TimeTrackVRulerControls::UpdateRuler(), SpectrogramSettings::Validate(), WaveformSettings::Validate(), Variant::detail::VisitHelper(), UndoManager::VisitStates(), MixerOptions::Warp::Warp(), PasteTimeWarper::Warp(), FifoBuffer::Write(), and FFmpegImportFileHandle::WriteData().

◆ RegisterCompareAudio()

void RegisterCompareAudio ( Registrar R)

Definition at line 45 of file CompareAudioCommand.cpp.

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

References Registrar::AddCommand().

Here is the call graph for this function: