Update of /cvsroot/audacity/audacity-src/src/effects
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv29668/effects
Modified Files:
Normalize.cpp Normalize.h
Log Message:
Add EffectNormalize::GetEffectDescription method so History shows parameters
applied.
Index: Normalize.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Normalize.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Normalize.cpp 29 Jul 2007 11:02:34 -0000 1.18
+++ Normalize.cpp 29 Sep 2007 02:21:14 -0000 1.19
@@ -61,6 +61,20 @@
return true;
}
+wxString EffectNormalize::GetEffectDescription() // useful only after
parameter values have been set
+{
+ // Note: This is useful only after ratio has been set.
+ wxString strResult =
+ wxString::Format(_("Applied effect: %s remove dc offset = %s, normalize
amplitude = %s"),
+ this->GetEffectName().c_str(),
+ mDC ? _("true") : _("false"),
+ mGain ? _("true") : _("false"));
+ if (mGain)
+ strResult += wxString::Format(_(", maximum amplitude = %.1f dB"),
-mLevel);
+
+ return strResult;
+}
+
bool EffectNormalize::TransferParameters( Shuttle & shuttle )
{
shuttle.TransferBool( wxT("ApplyGain"), mGain, true );
Index: Normalize.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Normalize.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Normalize.h 22 Feb 2007 06:56:42 -0000 1.7
+++ Normalize.h 29 Sep 2007 02:21:14 -0000 1.8
@@ -41,6 +41,8 @@
return wxString(_("Normalizing..."));
}
+ virtual wxString GetEffectDescription(); // useful only after parameter
values have been set
+
virtual bool PromptUser();
virtual bool TransferParameters( Shuttle & shuttle );
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs