Update of /cvsroot/audacity/audacity-src/src/effects
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24001

Modified Files:
        ChangePitch.h ChangeSpeed.h ChangeTempo.h 
Log Message:
Add CheckWhetherSkipEffect method.

Index: ChangeTempo.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangeTempo.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- ChangeTempo.h       12 Jun 2008 12:41:29 -0000      1.15
+++ ChangeTempo.h       18 Jun 2009 22:34:36 -0000      1.16
@@ -26,7 +26,7 @@
 class wxTextCtrl;
 
 
-class EffectChangeTempo:public EffectSoundTouch {
+class EffectChangeTempo : public EffectSoundTouch {
 
  public:
    EffectChangeTempo();
@@ -56,6 +56,8 @@
 
    virtual bool PromptUser();
    virtual bool TransferParameters( Shuttle & shuttle );
+
+   virtual bool CheckWhetherSkipEffect() { return (m_PercentChange == 0.0); }
    virtual bool Process();
   
  private:

Index: ChangeSpeed.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangeSpeed.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- ChangeSpeed.h       12 Jul 2008 15:25:45 -0000      1.16
+++ ChangeSpeed.h       18 Jun 2009 22:34:36 -0000      1.17
@@ -52,6 +52,8 @@
  protected:
    virtual bool PromptUser();
    virtual bool TransferParameters( Shuttle & shuttle );
+
+   virtual bool CheckWhetherSkipEffect() { return (m_PercentChange == 0.0); }
    virtual bool Process();
 
  private:

Index: ChangePitch.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangePitch.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- ChangePitch.h       12 Jun 2008 12:41:29 -0000      1.15
+++ ChangePitch.h       18 Jun 2009 22:34:36 -0000      1.16
@@ -22,7 +22,7 @@
 #include <wx/intl.h>
 #include <wx/slider.h>
 
-class EffectChangePitch:public EffectSoundTouch {
+class EffectChangePitch : public EffectSoundTouch {
 
  public:
    EffectChangePitch();
@@ -58,6 +58,8 @@
 
    virtual bool PromptUser();
    virtual bool TransferParameters( Shuttle & shuttle );
+
+   virtual bool CheckWhetherSkipEffect() { return (m_PercentChange == 0.0); }
    virtual bool Process();
    
  private:


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to