audacia/src/effects/Repair.h
Paul Licameli ad04187a41 Change sampleCount arguments, variables, return values to size_t...
... whenever they really describe the size of a buffer that fits in memory, or
of a block file (which is never now more than a megabyte and so could be fit in
memory all at once), or a part thereof.
2016-09-15 21:03:17 -04:00

53 lines
1.1 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
Repair.h
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_EFFECT_REPAIR__
#define __AUDACITY_EFFECT_REPAIR__
#include <wx/string.h>
#include "Effect.h"
#define REPAIR_PLUGIN_SYMBOL XO("Repair")
class WaveTrack;
class EffectRepair final : public Effect
{
public:
EffectRepair();
virtual ~EffectRepair();
// IdentInterface implementation
wxString GetSymbol() override;
wxString GetDescription() override;
// EffectIdentInterface implementation
EffectType GetType() override;
bool IsInteractive() override;
// Effect implementation
bool Process() override;
private:
// EffectRepair implementaion
bool ProcessOne(int count, WaveTrack * track,
sampleCount start,
size_t len,
size_t repairStart, // offset relative to start
size_t repairLen);
};
#endif // __AUDACITY_EFFECT_REPAIT__