Audacity 3.2.0
WaveTrackUtilities.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 WaveTrackUtilities.h
7
8 Paul Licameli
9
10 @brief some convenient iterations over clips, needing only the public
11 interface of WaveTrack
12
13**********************************************************************/
14
15#include "Internat.h"
16#include "TranslatableString.h"
17
18class WaveTrack;
19using ProgressReporter = std::function<void(double)>;
20
22
25WAVE_TRACK_API
26bool HasPitchOrSpeed(const WaveTrack &track, double t0, double t1);
27
28extern WAVE_TRACK_API const TranslatableString defaultStretchRenderingTitle;
29
30WAVE_TRACK_API void WithClipRenderingProgress(
31 std::function<void(const ProgressReporter&)> action,
33 TranslatableString message = XO("Rendering Clip"));
34}
XO("Cut/Copy/Paste")
static const auto title
std::function< void(double)> ProgressReporter
Definition: Track.h:53
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:227
WAVE_TRACK_API const TranslatableString defaultStretchRenderingTitle
WAVE_TRACK_API bool HasPitchOrSpeed(const WaveTrack &track, double t0, double t1)
WAVE_TRACK_API void WithClipRenderingProgress(std::function< void(const ProgressReporter &)> action, TranslatableString title=defaultStretchRenderingTitle, TranslatableString message=XO("Rendering Clip"))