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

Modified Files:
        Effect.h Normalize.h StereoToMono.h 
Log Message:
Fixed crash when StereoToMono is executed on a non-English system

Index: StereoToMono.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/StereoToMono.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- StereoToMono.h      12 Oct 2006 04:13:57 -0000      1.3
+++ StereoToMono.h      22 Feb 2007 06:56:42 -0000      1.4
@@ -23,6 +23,11 @@
       return wxString(_("Stereo To Mono"));
    }
 
+   // Used internally, users will not see this.  Do not translate.
+   virtual wxString GetEffectIdentifier() {
+      return wxT("StereoToMono");
+   }
+
    virtual wxString GetEffectAction() {
       return wxString(_("Applying Stereo To Mono"));
    }

Index: Normalize.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Normalize.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Normalize.h 27 Mar 2006 11:54:13 -0000      1.6
+++ Normalize.h 22 Feb 2007 06:56:42 -0000      1.7
@@ -31,6 +31,11 @@
    virtual wxString GetEffectName() {
       return wxString(_("Normalize..."));
    }
+
+   // This is just used internally, users should not see it.  Do not translate.
+   virtual wxString GetEffectIdentifier() {
+      return wxT("Normalize");
+   }
    
    virtual wxString GetEffectAction() {
       return wxString(_("Normalizing..."));

Index: Effect.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Effect.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- Effect.h    8 Aug 2006 06:03:50 -0000       1.27
+++ Effect.h    22 Feb 2007 06:56:42 -0000      1.28
@@ -84,6 +84,11 @@
    // This name will go in the menu bar;
    // append "..." if your effect pops up a dialog
    virtual wxString GetEffectName() = 0;
+
+   // Totally optional - if you need a way to identify your effect
+   // from somewhere else in the program.  This should be human-readable,
+   // but should NOT be translated.  Use wxT(""), not _("").
+   virtual wxString GetEffectIdentifier() { return wxT(""); }
    
    // Each subclass of Effect should override this method.
    // This name will go in the progress dialog, but can be used


-------------------------------------------------------------------------
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