1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 00:21:16 +02:00
audacity/src/effects/StereoToMono.h
lllucius 16ca4f17eb Re-adding localized menu labels for effects
If you can believe it, this whole big mess is
just to get localized effect labels back into
the menus.

I sure wish I'd had a little bit more time to
finish up all of the effects.  It sure would 
be a lot cleaner (code wise).
2014-12-15 21:54:23 +00:00

64 lines
1.3 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
StereoToMono.h
Lynn Allan
**********************************************************************/
#ifndef __AUDACITY_EFFECT_STEREO_TO_MONO__
#define __AUDACITY_EFFECT_STEREO_TO_MONO__
#include "Effect.h"
class EffectStereoToMono: public Effect {
public:
EffectStereoToMono();
virtual wxString GetEffectName() {
return wxString(wxTRANSLATE("Stereo to Mono"));
}
virtual std::set<wxString> GetEffectCategories() {
std::set<wxString> result;
result.insert(wxT("http://lv2plug.in/ns/lv2core#MixerPlugin"));
return result;
}
// Used internally, users will not see this. Do not translate.
virtual wxString GetEffectIdentifier() {
return wxT("Stereo To Mono");
}
virtual wxString GetEffectAction() {
return wxString(_("Applying Stereo to Mono"));
}
virtual bool Init();
virtual void End();
virtual bool CheckWhetherSkipEffect();
virtual bool PromptUser() {
return true;
}
protected:
virtual bool Process();
private:
bool ProcessOne(int);
sampleCount mStart;
sampleCount mEnd;
WaveTrack *mLeftTrack;
WaveTrack *mRightTrack;
WaveTrack *mOutTrack;
};
#endif