浏览代码

mp3 support

Cary Sandvig 25 年之前
父节点
当前提交
1e4c574245
共有 3 个文件被更改,包括 14 次插入2 次删除
  1. 12 0
      panda/src/mpg123/Sources.pp
  2. 1 1
      panda/src/mpg123/mpg123.h
  3. 1 1
      panda/src/mpg123/readers.c

+ 12 - 0
panda/src/mpg123/Sources.pp

@@ -0,0 +1,12 @@
+#begin static_lib_target
+  #define TARGET mpg123
+  #define SOURCES \
+    audio.c dct64.c decode.c decode_2to1.c decode_4to1.c decode_ntom.c \
+    layer1.c layer2.c layer3.c tabinit.c vbrhead.c xfermem.c common.c \
+    getbits.c mpgbuffer.c equalizer.c httpget.c readers.c
+  #define CFLAGS -DGENERIC -DNOXFERMEM
+
+  #define INSTALL_HEADERS \
+    mpg123.h xfermem.h mpgaudio.h
+
+#end static_lib_target

+ 1 - 1
panda/src/mpg123/mpg123.h

@@ -68,7 +68,7 @@ typedef unsigned char byte;
 #define INLINE
 #endif
 
-#include "audio.h"
+#include "mpgaudio.h"
 
 /* AUDIOBUFSIZE = n*64 with n=1,2,3 ...  */
 #define		AUDIOBUFSIZE		16384

+ 1 - 1
panda/src/mpg123/readers.c

@@ -5,7 +5,7 @@
 #include <fcntl.h>
 
 #include "mpg123.h"
-#include "buffer.h"
+#include "mpgbuffer.h"
 #include "common.h"
 
 #ifdef READ_MMAP