Debian Codegraph @

src/tracks/playabletrack/wavetrack/ui/WaveClipUIUtilities.h

raw
1 /**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file WaveClipUIUtilities.h
6
7 Paul Licameli split from WaveClip.h
8
9 *******************************************************************/
10
11 #ifndef __AUDACITY_WAVE_CLIP_UI_UTILITIES__
12 #define __AUDACITY_WAVE_CLIP_UI_UTILITIES__
13
14 #include <cstddef>
15 #include <vector>
16
17 #include "../../../ui/CommonTrackPanelCell.h"
18 #include "WaveTrack.h"
19 #include <wx/frame.h>
20
21 class sampleCount;
22 class AudacityProject;
23 enum class PitchAndSpeedDialogFocus;
24
25 namespace WaveClipUIUtilities
26 {
27 AUDACITY_DLL_API
28 void findCorrection(
29 const std::vector<sampleCount>& oldWhere, size_t oldLen, size_t newLen,
30 double t0, double sampleRate, double stretchRatio, double samplesPerPixel,
31 int& oldX0, double& correction);
32
33 AUDACITY_DLL_API
34 void fillWhere(
35 std::vector<sampleCount>& where, size_t len, bool addBias, double correction,
36 double t0, double sampleRate, double stretchRatio, double samplesPerPixel);
37
38 std::vector<CommonTrackPanelCell::MenuItem> GetWaveClipMenuItems();
39
40 void PushClipSpeedChangedUndoState(
41 AudacityProject& project, double speedInPercent);
42
43 void SelectClip(AudacityProject& project, const WaveTrack::Interval& clip);
44 } // namespace WaveClipUtilities
45 #endif