mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
... for functions in final classes. override is like const -- it's not necessary, but it helps the compiler to catch mistakes. There may be some overriding functions not explicitly declared virtual and I did not identify such cases, in which I might also add override.
67 lines
1.5 KiB
C++
67 lines
1.5 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
Paulstretch.h
|
|
|
|
Nasca Octavian Paul (Paul Nasca)
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_EFFECT_PAULSTRETCH__
|
|
#define __AUDACITY_EFFECT_PAULSTRETCH__
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include "Effect.h"
|
|
|
|
class ShuttleGui;
|
|
|
|
#define PAULSTRETCH_PLUGIN_SYMBOL XO("Paulstretch")
|
|
|
|
class EffectPaulstretch final : public Effect
|
|
{
|
|
public:
|
|
EffectPaulstretch();
|
|
virtual ~EffectPaulstretch();
|
|
|
|
// IdentInterface implementation
|
|
|
|
wxString GetSymbol() override;
|
|
wxString GetDescription() override;
|
|
|
|
// EffectIdentInterface implementation
|
|
|
|
EffectType GetType() override;
|
|
|
|
// EffectClientInterface implementation
|
|
|
|
bool GetAutomationParameters(EffectAutomationParameters & parms) override;
|
|
bool SetAutomationParameters(EffectAutomationParameters & parms) override;
|
|
|
|
// Effect implementation
|
|
|
|
double CalcPreviewInputLength(double previewLength) override;
|
|
bool Process() override;
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
bool TransferDataToWindow() override;
|
|
bool TransferDataFromWindow() override;
|
|
|
|
private:
|
|
// EffectPaulstretch implementation
|
|
|
|
void OnText(wxCommandEvent & evt);
|
|
int GetBufferSize(double rate);
|
|
|
|
bool ProcessOne(WaveTrack *track, double t0, double t1, int count);
|
|
|
|
private:
|
|
float mAmount;
|
|
float mTime_resolution; //seconds
|
|
double m_t1;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|
|
|
|
#endif
|
|
|