Update of /cvsroot/pure-data/externals/iemlib/src/iem_mp3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3024/iemlib/src/iem_mp3
Modified Files: iem_mp3.c makefile_win Added Files: makefile_linux mp3play~.c Removed Files: sigmp3play.c Log Message: change sig*.c to *~.c and sig* to *_tilde change makefiles
Index: iem_mp3.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iem_mp3/iem_mp3.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** iem_mp3.c 11 Apr 2006 16:24:09 -0000 1.4 --- iem_mp3.c 8 Nov 2006 16:24:19 -0000 1.5 *************** *** 4,12 **** iem_mp3 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */
- #ifdef _MSC_VER - #pragma warning( disable : 4244 ) - #pragma warning( disable : 4305 ) - #endif - #include "m_pd.h" #include "iemlib.h" --- 4,7 ----
--- NEW FILE: mp3play~.c --- /* For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
iem_mp3 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */
/* mp3play~.c - Mpeg Layer III Player for PD Version:0.1 05-18-2000 written by Thomas Musil (musil_at_iem.at), Norbert Math (math_at_iem.kug.ac.at) IEM Graz
debugged for windows 013-03-2003
This MPEG Player is based on the mpglib 0.2 by Michael Hipp which comes with mpg123-0.59r
please see the README file for copyright notices!
*/ [...3820 lines suppressed...] }
void mp3play_tilde_setup(void) { mp3play_tilde_class = class_new(gensym("mp3play~"), (t_newmethod)mp3play_tilde_new, (t_method)mp3play_tilde_free, sizeof(t_mp3play_tilde), 0, 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_dsp, gensym("dsp"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_start, gensym("start"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_ft1, gensym("ft1"), A_FLOAT, 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_stop, gensym("stop"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_pause, gensym("pause"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_open_again_at, gensym("open_again_at"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_open, gensym("open"), A_DEFSYM, 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_open_again, gensym("open_again"), 0); class_addmethod(mp3play_tilde_class, (t_method)mp3play_tilde_open_at, gensym("open_at"), A_DEFSYM, 0); class_sethelpsymbol(mp3play_tilde_class, gensym("iemhelp/help-mp3play~")); /*post("\nmp3play~ written by thomas musil & norbert math\nV 0.1 iem graz austria 05 2000\n");*/ }
Index: makefile_win =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iem_mp3/makefile_win,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** makefile_win 31 Oct 2006 14:17:16 -0000 1.4 --- makefile_win 8 Nov 2006 16:24:19 -0000 1.5 *************** *** 16,21 **** $(PD_INST_PATH)\bin\pd.lib
! SRC = sigmp3play.c \ ! iem_mp3.c
OBJ = $(SRC:.c=.obj) --- 16,21 ---- $(PD_INST_PATH)\bin\pd.lib
! SRC = mp3play~.c \ ! iem_mp3.c
OBJ = $(SRC:.c=.obj)
--- sigmp3play.c DELETED ---
--- NEW FILE: makefile_linux --- current: all
.SUFFIXES: .pd_linux
INCLUDE = -I. -I/usr/local/src/pd/src
LDFLAGS = -export-dynamic -shared LIB = -ldl -lm -lpthread
#select either the DBG and OPT compiler flags below:
CFLAGS = -DPD -DUNIX -W -Werror -Wno-unused \ -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \ -DDL_OPEN
SYSTEM = $(shell uname -m)
# the sources
SRC = mp3play~.c \ iem_mp3.c
TARGET = iem_mp3.pd_linux
OBJ = $(SRC:.c=.o)
# # ------------------ targets ------------------------------------ #
clean: rm $(TARGET) rm *.o
all: $(OBJ) @echo :: $(OBJ) $(LD) $(LDFLAGS) -o $(TARGET) *.o $(LIB) strip --strip-unneeded $(TARGET)
$(OBJ) : %.o : %.c $(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c