38 return XO(
"Reverses the selected audio");
61 bool bGoodResult =
true;
66 trackRange.VisitWhile(
69 const auto progress = [&](
double fraction) {
76 auto len =
end - start;
84 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.
A LabelTrack is a Track that holds labels (LabelStruct).
ComponentInterfaceSymbol GetSymbol() const override
EffectType GetType() const override
Type determines how it behaves.
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
static const ComponentInterfaceSymbol Symbol
bool Process(EffectInstance &instance, EffectSettings &settings) override
TranslatableString GetDescription() const override
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={})
const char * end(const char *str) noexcept
Externalized state of a plug-in.