Audacity 3.2.0
WaveClipUIUtilities.h
Go to the documentation of this file.
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
21class sampleCount;
22class AudacityProject;
23enum class PitchAndSpeedDialogFocus;
24
26{
27AUDACITY_DLL_API
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
33AUDACITY_DLL_API
34void fillWhere(
35 std::vector<sampleCount>& where, size_t len, bool addBias, double correction,
36 double t0, double sampleRate, double stretchRatio, double samplesPerPixel);
37
38std::vector<CommonTrackPanelCell::MenuItem> GetWaveClipMenuItems();
39
41 AudacityProject& project, double speedInPercent);
42
44} // namespace WaveClipUtilities
45#endif
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
This allows multiple clips to be a part of one WaveTrack.
Definition: WaveClip.h:238
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19
void SelectClip(AudacityProject &project, const WaveTrack::Interval &clip)
void PushClipSpeedChangedUndoState(AudacityProject &project, double speedInPercent)
std::vector< CommonTrackPanelCell::MenuItem > GetWaveClipMenuItems()
AUDACITY_DLL_API void fillWhere(std::vector< sampleCount > &where, size_t len, bool addBias, double correction, double t0, double sampleRate, double stretchRatio, double samplesPerPixel)
AUDACITY_DLL_API void findCorrection(const std::vector< sampleCount > &oldWhere, size_t oldLen, size_t newLen, double t0, double sampleRate, double stretchRatio, double samplesPerPixel, int &oldX0, double &correction)