1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 08:03:48 +02:00
audacity/src/effects/FindClipping.h
2017-05-20 14:49:07 +01:00

65 lines
1.6 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
FindClipping.h
Dominic Mazzoni
Vaughan Johnson (dialog)
**********************************************************************/
#ifndef __AUDACITY_EFFECT_FINDCLIPPING__
#define __AUDACITY_EFFECT_FINDCLIPPING__
class wxString;
class LabelTrack;
#include <wx/string.h>
#include "Effect.h"
#define FINDCLIPPING_PLUGIN_SYMBOL XO("Find Clipping")
class EffectFindClipping final : public Effect
{
public:
EffectFindClipping();
virtual ~EffectFindClipping();
// IdentInterface implementation
wxString GetSymbol() override;
wxString GetDescription() override;
wxString ManualPage() override;
// EffectIdentInterface implementation
EffectType GetType() override;
// EffectClientInterface implementation
bool GetAutomationParameters(EffectAutomationParameters & parms) override;
bool SetAutomationParameters(EffectAutomationParameters & parms) override;
// Effect implementation
bool Process() override;
void PopulateOrExchange(ShuttleGui & S) override;
bool TransferDataToWindow() override;
bool TransferDataFromWindow() override;
private:
// EffectFindCliping implementation
bool ProcessOne(LabelTrack *lt, int count, const WaveTrack * wt,
sampleCount start, sampleCount len);
private:
int mStart; ///< Using int rather than sampleCount because values are only ever small numbers
int mStop; ///< Using int rather than sampleCount because values are only ever small numbers
};
#endif // __AUDACITY_EFFECT_FINDCLIPPING__