Update of /cvsroot/audacity/audacity-src/src/effects
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv13821/src/effects

Modified Files:
        Compressor.cpp Compressor.h 
Log Message:
Added TransferParameters fro batch mode.

Index: Compressor.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Compressor.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- Compressor.cpp      17 Jul 2006 23:39:14 -0000      1.33
+++ Compressor.cpp      27 Sep 2006 22:45:46 -0000      1.34
@@ -44,6 +44,7 @@
 #include "../WaveTrack.h"
 #include "../widgets/Ruler.h"
 #include "../AColor.h"
+#include "../Shuttle.h"
 
 EffectCompressor::EffectCompressor()
 {
@@ -57,6 +58,15 @@
        mLevelCircle = NULL;
 }
 
+bool EffectCompressor::TransferParameters( Shuttle & shuttle )
+{
+   shuttle.TransferDouble( wxT("Threshold"), mThresholdDB, -12.0f );
+   shuttle.TransferDouble( wxT("Ratio"), mRatio, 2.0f );
+   shuttle.TransferDouble( wxT("Attack Time"), mAttackTime, 0.2f );
+   shuttle.TransferBool( wxT("Normalize"), mNormalize, true );
+   return true;
+}
+
 bool EffectCompressor::PromptUser()
 {
    CompressorDialog dlog(this, mParent, -1, _("Dynamic Range Compressor"));

Index: Compressor.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Compressor.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Compressor.h        25 Nov 2005 05:27:14 -0000      1.13
+++ Compressor.h        27 Sep 2006 22:45:46 -0000      1.14
@@ -41,6 +41,7 @@
    }
    
    virtual bool PromptUser();
+   virtual bool TransferParameters( Shuttle & shuttle );
 
  protected:
    virtual bool ProcessPass1(float *buffer, sampleCount len);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to