mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 07:29:29 +02:00
49 lines
996 B
C++
49 lines
996 B
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
Invert.h
|
|
|
|
Mark Phillips
|
|
|
|
This class inverts the selected audio.
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_EFFECT_INVERT__
|
|
#define __AUDACITY_EFFECT_INVERT__
|
|
|
|
#include <wx/intl.h>
|
|
#include <wx/string.h>
|
|
|
|
#include "SimpleMono.h"
|
|
|
|
class WaveTrack;
|
|
|
|
class EffectInvert:public EffectSimpleMono {
|
|
|
|
public:
|
|
virtual wxString GetEffectName() {
|
|
return wxString(_("Invert"));
|
|
}
|
|
|
|
virtual std::set<wxString> GetEffectCategories() {
|
|
std::set<wxString> result;
|
|
result.insert(wxT("http://lv2plug.in/ns/lv2core#UtilityPlugin"));
|
|
return result;
|
|
}
|
|
|
|
virtual wxString GetEffectIdentifier() {
|
|
return wxString(wxT("Invert"));
|
|
}
|
|
|
|
virtual wxString GetEffectAction() {
|
|
return wxString(_("Inverting"));
|
|
}
|
|
|
|
protected:
|
|
virtual bool ProcessSimpleMono(float *buffer, sampleCount len);
|
|
};
|
|
|
|
#endif
|