From bee56ee5d28188f2abb09c50c0624f7cc4f4098a Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 13 Jan 2002 18:56:02 +0000 Subject: [PATCH] Added sound module. --- lib/rfxswf.c | 2 ++ lib/rfxswf.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index f0f23ec..f560f95 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -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 diff --git a/lib/rfxswf.h b/lib/rfxswf.h index c2358cd..4ad76cb 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -19,6 +19,7 @@ #include #include #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); -- 1.7.10.4