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

Modified Files:
        Menus.cpp Menus.h 
Log Message:
Add MP2 export

Index: Menus.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.h,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- Menus.h     12 Oct 2006 04:13:50 -0000      1.92
+++ Menus.h     19 Oct 2006 10:42:46 -0000      1.93
@@ -133,6 +133,8 @@
 void OnExportOggSelection();
 void OnExportFLACMix();
 void OnExportFLACSelection();
+void OnExportMP2Mix();
+void OnExportMP2Selection();
 
 void OnExportMultiple();
 

Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.288
retrieving revision 1.289
diff -u -d -r1.288 -r1.289
--- Menus.cpp   17 Oct 2006 12:28:52 -0000      1.288
+++ Menus.cpp   19 Oct 2006 10:42:45 -0000      1.289
@@ -245,6 +245,12 @@
                          AudioIONotBusyFlag | TracksExistFlag,
                          wxT("ExportFLAC"), NULL);
 #endif
+#ifdef USE_LIBTWOLAME
+      c->AddItem(wxT("ExportMP2"), _("MP&2..."), FN(OnExportMP2Mix));
+      c->SetCommandFlags(AudioIONotBusyFlag | TracksExistFlag,
+                         AudioIONotBusyFlag | TracksExistFlag,
+                         wxT("ExportMP2"), NULL);
+#endif
       c->EndSubMenu();
       
       c->BeginSubMenu(_("Expo&rt Selection As..."));
@@ -263,6 +269,12 @@
                          AudioIONotBusyFlag | TracksExistFlag | 
TracksSelectedFlag,
                          wxT("ExportFLACSel"), NULL);
 #endif
+#ifdef USE_LIBTWOLAME
+      c->AddItem(wxT("ExportMP2Sel"),    _("&MP&2..."), 
FN(OnExportMP2Selection));
+      c->SetCommandFlags(AudioIONotBusyFlag | TracksExistFlag | 
TracksSelectedFlag,
+                         AudioIONotBusyFlag | TracksExistFlag | 
TracksSelectedFlag,
+                         wxT("ExportMP2Sel"), NULL);
+#endif
       c->EndSubMenu();
       
       // Enable Export commands only when there are tracks
@@ -2174,6 +2186,16 @@
    ::ExportCompressed(this, wxT("MP3"), true, mViewInfo.sel0, mViewInfo.sel1);
 }
 
+void AudacityProject::OnExportMP2Mix()
+{
+   ::ExportCompressed(this, wxT("MP2"), false, 0.0, mTracks->GetEndTime());
+}
+
+void AudacityProject::OnExportMP2Selection()
+{
+   ::ExportCompressed(this, wxT("MP2"), true, mViewInfo.sel0, mViewInfo.sel1);
+}
+
 void AudacityProject::OnExportOggMix()
 {
    ::ExportCompressed(this, wxT("OGG"), false, 0.0, mTracks->GetEndTime());


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to