Added sound module.
authorkramm <kramm>
Sun, 13 Jan 2002 18:56:02 +0000 (18:56 +0000)
committerkramm <kramm>
Sun, 13 Jan 2002 18:56:02 +0000 (18:56 +0000)
lib/rfxswf.c
lib/rfxswf.h

index f0f23ec..f560f95 100644 (file)
@@ -877,6 +877,7 @@ void swf_FreeTags(SWF * swf)                 // Frees all malloc'ed memory for t
 #include "modules\swfcgi.c"
 #include "modules\swfbits.c"
 #include "modules\swfaction.c"
+#include "modules\swfsound.c"
 
 #else
 
@@ -889,6 +890,7 @@ void swf_FreeTags(SWF * swf)                 // Frees all malloc'ed memory for t
 #include "modules/swfcgi.c"
 #include "modules/swfbits.c"
 #include "modules/swfaction.c"
+#include "modules/swfsound.c"
 
 #endif
 
index c2358cd..4ad76cb 100644 (file)
@@ -19,6 +19,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include "../config.h"
+#include "bladeenc/codec.h"
 
 #define DEBUG_RFXSWF
 
@@ -558,6 +559,10 @@ int swf_SetLosslessBits(TAG * t,U16 width,U16 height,void * bitmap,U8 bitmap_fla
 int swf_SetLosslessBitsIndexed(TAG * t,U16 width,U16 height,U8 * bitmap,RGBA * palette,U16 ncolors);
 int swf_SetLosslessBitsGrayscale(TAG * t,U16 width,U16 height,U8 * bitmap);
 
+// swfsound.c
+void swf_SetSoundStreamHead(TAG*tag, U16 avgnumsamples);
+void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first);
+
 // swftools.c
 
 U8 swf_isDefiningTag(TAG * t);