Update of /cvsroot/pure-data/externals/unauthorized/mp3amp~ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28467/mp3amp~
Modified Files: mp3amp~.c Log Message: making mp3*~ work on windows
Index: mp3amp~.c =================================================================== RCS file: /cvsroot/pure-data/externals/unauthorized/mp3amp~/mp3amp~.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mp3amp~.c 25 Sep 2003 20:58:54 -0000 1.3 --- mp3amp~.c 22 May 2004 14:04:12 -0000 1.4 *************** *** 53,56 **** --- 53,58 ---- #else #include <winsock.h> + #include <winbase.h> + #include <io.h> #endif
*************** *** 65,70 **** --- 67,75 ---- #ifdef NT #define STRDUP _strdup + #define MSG_NOSIGNAL 0 + #define sys_closesocket closesocket #endif
+ #define LAME_AUDIO_CHUNK_SIZE 1152 #define MIN_AUDIO_INPUT 2*LAME_AUDIO_CHUNK_SIZE /* we must have at least n chunks to play a steady sound */