X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fdl%2Fext%2Flame%2Fmp3x.c;fp=src%2Flib%2Fdl%2Fext%2Flame%2Fmp3x.c;h=0000000000000000000000000000000000000000;hb=4b23f27092a9470a741e3a18261ad389fd1929db;hp=e8472a9d33c2ac8fc43e5f115011eb66d1f8ecbf;hpb=5d8d1deb6c3520abadbad86d202ea453df77bfc2;p=16.git diff --git a/src/lib/dl/ext/lame/mp3x.c b/src/lib/dl/ext/lame/mp3x.c deleted file mode 100755 index e8472a9d..00000000 --- a/src/lib/dl/ext/lame/mp3x.c +++ /dev/null @@ -1,65 +0,0 @@ -/* $Id: mp3x.c,v 1.28 2010/04/08 11:07:50 robert Exp $ */ - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include - -#include "lame.h" -#include "machine.h" -#include "encoder.h" -#include "lame-analysis.h" -#include -#include "parse.h" -#include "get_audio.h" -#include "gtkanal.h" -#include "lametime.h" - -#include "main.h" -#include "console.h" - - -/************************************************************************ -* -* main -* -* PURPOSE: MPEG-1,2 Layer III encoder with GPSYCHO -* psychoacoustic model. -* -************************************************************************/ -int -lame_main(lame_t gf, int argc, char **argv) -{ - unsigned char mp3buffer[LAME_MAXMP3BUFFER]; - char outPath[PATH_MAX + 1]; - char inPath[PATH_MAX + 1]; - int ret; - - lame_set_errorf(gf, &frontend_errorf); - lame_set_debugf(gf, &frontend_debugf); - lame_set_msgf(gf, &frontend_msgf); - if (argc <= 1) { - usage(stderr, argv[0]); /* no command-line args */ - return -1; - } - ret = parse_args(gf, argc, argv, inPath, outPath, NULL, NULL); - if (ret < 0) { - return ret == -2 ? 0 : 1; - } - (void) lame_set_analysis(gf, 1); - - if (init_infile(gf, inPath) < 0) { - error_printf("Can't init infile '%s'\n", inPath); - return 1; - } - lame_init_params(gf); - lame_print_config(gf); - - gtk_init(&argc, &argv); - gtkcontrol(gf, inPath); - - lame_encode_flush(gf, mp3buffer, sizeof(mp3buffer)); - close_infile(); - return 0; -}