From 4ddce6544046b29b2ce9aabc262be75fe9f9e832 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 29 Nov 2006 00:17:06 +0000 Subject: [PATCH] changed lame path to the defaults (/usr/include/lame and liblame) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@149 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/mp3/Makefile | 12 +++++++++--- apps/mp3/mp3.c | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/mp3/Makefile b/apps/mp3/Makefile index d6d9e06b..4ce0167d 100644 --- a/apps/mp3/Makefile +++ b/apps/mp3/Makefile @@ -3,10 +3,16 @@ plug_in_name = mp3 COREPATH ?=../../core LAME_DIR = ./lame-3.96.1 -#module_ldflags = -L$(LAME_DIR)/libmp3lame/.libs -module_extra_objs = $(LAME_DIR)/libmp3lame/.libs/libmp3lame.a +module_extra_objs = -lmp3lame +module_cflags = -I/usr/include/lame + +# if you want to build lame from source use these +# module_ldflags and module_extra_objs + +#module_ldflags = -L$(LAME_DIR)/libmp3lame/.libs +#module_extra_objs = $(LAME_DIR)/libmp3lame/.libs/libmp3lame.a +#module_cflags = -I$(LAME_DIR)/include -module_cflags = -I$(LAME_DIR)/include extra_clean = diff --git a/apps/mp3/mp3.c b/apps/mp3/mp3.c index a58610ac..bee68000 100644 --- a/apps/mp3/mp3.c +++ b/apps/mp3/mp3.c @@ -234,7 +234,7 @@ static int MP3_close(FILE* fp, struct amci_file_desc_t* fmt_desc, int options, l { int final_samples; - char mp3buffer[7200]; + unsigned char mp3buffer[7200]; DBG("MP3: close. \n"); if(options == AMCI_WRONLY) { if ((final_samples = lame_encode_flush((lame_global_flags *)h_codec,mp3buffer, 7200))) {