22#include "../LabelTrack.h"
54 return XO(
"Reverses the selected audio");
77 bool bGoodResult =
true;
82 trackRange.VisitWhile(bGoodResult,
85 [&](
double fraction){
return !
TrackProgress(count, fraction); };
89 auto len =
end - start;
97 track.ChangeLabelsOnReverse(
mT0,
mT1);
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
std::shared_ptr< TrackList > mTracks
bool TrackProgress(int whichTrack, double frac, const TranslatableString &={}) const
Performs effect computation.
Use this object to copy the input tracks to tentative outputTracks.
static const ComponentInterfaceSymbol Symbol
ComponentInterfaceSymbol GetSymbol() const override
EffectType GetType() const override
Type determines how it behaves.
TranslatableString GetDescription() const override
bool Process(EffectInstance &instance, EffectSettings &settings) override
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
A LabelTrack is a Track that holds labels (LabelStruct).
static bool IsSelectedOrSyncLockSelectedP(const Track *pTrack)
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
size_t NChannels() const override
A constant property.
sampleCount TimeToLongSamples(double t0) const
WAVE_TRACK_API bool Reverse(WaveTrack &track, sampleCount start, sampleCount len, const ProgressReport &report={})
BuiltinEffectsModule::Registration< EffectReverse > reg
const char * end(const char *str) noexcept
Externalized state of a plug-in.