File paulstretch-nomp3.patch of Package paulstretch
Index: paulstretch-2.2-2/compile_linux_fftw.sh
===================================================================
--- paulstretch-2.2-2.orig/compile_linux_fftw.sh
+++ paulstretch-2.2-2/compile_linux_fftw.sh
@@ -6,7 +6,7 @@ fluid -c GUI.fl
fluid -c FreeEditUI.fl
g++ -ggdb GUI.cxx FreeEditUI.cxx *.cpp Input/*.cpp Output/*.cpp `fltk-config --cflags` \
- `fltk-config --ldflags` -laudiofile -lfftw3f -lvorbisenc -lvorbisfile -lportaudio -lpthread -lmad -lmxml -o $outfile
+ `fltk-config --ldflags` -laudiofile -lfftw3f -lvorbisenc -lvorbisfile -lportaudio -lpthread -lmxml -o $outfile
rm -f GUI.h GUI.cxx FreeEditUI.h FreeEditUI.cxx
Index: paulstretch-2.2-2/Control.cpp
===================================================================
--- paulstretch-2.2-2.orig/Control.cpp
+++ paulstretch-2.2-2/Control.cpp
@@ -60,7 +60,7 @@ Control::~Control(){
bool Control::set_input_filename(string filename,FILE_TYPE intype){
InputS *ai=NULL;
if (intype==FILE_VORBIS) ai=new VorbisInputS;
- if (intype==FILE_MP3) ai=new MP3InputS;
+// if (intype==FILE_MP3) ai=new MP3InputS;
if (intype==FILE_WAV) ai=new AInputS;
if (!ai) return false;
wavinfo.filename=filename;
@@ -367,8 +367,8 @@ string Control::Render(string inaudio,st
switch(intype){
case FILE_VORBIS:ai=new VorbisInputS;
break;
- case FILE_MP3:ai=new MP3InputS;
- break;
+// case FILE_MP3:ai=new MP3InputS;
+// break;
default:ai=new AInputS;
};
AOutputS ao;
Index: paulstretch-2.2-2/Control.h
===================================================================
--- paulstretch-2.2-2.orig/Control.h
+++ paulstretch-2.2-2/Control.h
@@ -22,7 +22,7 @@ Inc., 59 Temple Place, Suite 330, Boston
#include "globals.h"
#include "Input/AInputS.h"
#include "Input/VorbisInputS.h"
-#include "Input/MP3InputS.h"
+//#include "Input/MP3InputS.h"
#include "Output/AOutputS.h"
#include "Output/VorbisOutputS.h"
#include "ProcessedStretch.h"
Index: paulstretch-2.2-2/Player.cpp
===================================================================
--- paulstretch-2.2-2.orig/Player.cpp
+++ paulstretch-2.2-2/Player.cpp
@@ -250,8 +250,8 @@ void Player::newtaskcheck(){
switch (task.intype){
case FILE_VORBIS:ai=new VorbisInputS;
break;
- case FILE_MP3:ai=new MP3InputS;
- break;
+// case FILE_MP3:ai=new MP3InputS;
+// break;
default: ai=new AInputS;
};
if (ai->open(task.filename)){
Index: paulstretch-2.2-2/Player.h
===================================================================
--- paulstretch-2.2-2.orig/Player.h
+++ paulstretch-2.2-2/Player.h
@@ -21,7 +21,7 @@
#include <string>
#include "Input/AInputS.h"
#include "Input/VorbisInputS.h"
-#include "Input/MP3InputS.h"
+//#include "Input/MP3InputS.h"
#include "ProcessedStretch.h"
#include "Thread.h"
#include "BinauralBeats.h"