/********************************************************************** Audacity: A Digital Audio Editor @file WaveClipUIUtilities.h Paul Licameli split from WaveClip.h *******************************************************************/ #ifndef __AUDACITY_WAVE_CLIP_UI_UTILITIES__ #define __AUDACITY_WAVE_CLIP_UI_UTILITIES__ #include #include #include "../../../ui/CommonTrackPanelCell.h" #include "WaveTrack.h" #include class sampleCount; class AudacityProject; enum class PitchAndSpeedDialogFocus; namespace WaveClipUIUtilities { AUDACITY_DLL_API void findCorrection( const std::vector& oldWhere, size_t oldLen, size_t newLen, double t0, double sampleRate, double stretchRatio, double samplesPerPixel, int& oldX0, double& correction); AUDACITY_DLL_API void fillWhere( std::vector& where, size_t len, bool addBias, double correction, double t0, double sampleRate, double stretchRatio, double samplesPerPixel); std::vector GetWaveClipMenuItems(); void PushClipSpeedChangedUndoState( AudacityProject& project, double speedInPercent); void SelectClip(AudacityProject& project, const WaveTrack::Interval& clip); } // namespace WaveClipUtilities #endif