Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv15889
Modified Files:
BatchCommands.cpp
Log Message:
Add ExportFlac as a "special" command
Index: BatchCommands.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/BatchCommands.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- BatchCommands.cpp 14 Oct 2006 20:12:51 -0000 1.24
+++ BatchCommands.cpp 15 Oct 2006 05:22:40 -0000 1.25
@@ -32,6 +32,7 @@
#include "Internat.h"
#include "Prefs.h"
#include "Shuttle.h"
+#include "export/ExportFLAC.h"
#include "export/ExportMP3.h"
#include "export/ExportOGG.h"
#include "export/ExportPCM.h"
@@ -55,6 +56,7 @@
wxT("Save Hq Master1"),
wxT("Save Hq Master2"),
wxT("Stereo To Mono"),
+ wxT("ExportFlac"),
wxT("ExportMp3"),
wxT("ExportOgg"),
wxT("ExportWav")
@@ -491,6 +493,17 @@
wxMessageBox(_("Ogg Vorbis support is not included in this build of
Audacity"));
return false;
#endif
+ } else if (command == wxT("ExportFlac")){
+#ifdef USE_LIBFLAC
+ filename.Replace(wxT(".mp3"), wxT(".flac"), false);
+ double endTime = GetEndTime();
+ if( endTime <= 0.0f )
+ return false;
+ return ::ExportFLAC(project, numChannels, filename, false, 0.0, endTime);
+#else
+ wxMessageBox(_("FLAC support is not included in this build of
Audacity"));
+ return false;
+#endif
}
wxMessageBox( wxString::Format(_("Command %s not implemented
yet"),command.c_str()) );
return false;
-------------------------------------------------------------------------
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