X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=07b9ea00d7f70fb1ed5cd6a45d3951c773e6d9a5;hb=714b122c75a757dcd1ef9a631aa209a298e650d7;hp=01b85f99a29a43744a7cac49a5dfd55a942116f4;hpb=4cc2227e383358d13c984a7cfa6e7a920450cf16;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 01b85f9..07b9ea0 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -39,6 +39,9 @@ extern "C" { #include "./drawer.h" #define DEBUG_RFXSWF +#ifdef RFXSWF_DISABLESOUND +#define NO_MP3 +#endif #ifndef TRUE #define TRUE (1) @@ -702,18 +705,12 @@ 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); -#ifndef RFXSWF_DISABLESOUND - // swfsound.c void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples); void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int seek, char first); /* expects 2304 samples */ - void swf_SetSoundDefine(TAG*tag, S16*samples, int num); - void swf_SetSoundInfo(TAG*tag, SOUNDINFO*info); -#endif // RFXSWF_DISABLESOUND - // swftools.c U8 swf_isDefiningTag(TAG * t); @@ -764,6 +761,9 @@ void swf_ActionEnumerateURLs(ActionTAG*atag, char*(*callback)(char*)); void swf_ActionEnumerateTargets(ActionTAG*atag, char*(*callback)(char*)); void swf_ActionEnumerateStrings(ActionTAG*atag, char*(*callback)(char*)); +// using action/actioncompiler.h: +ActionTAG* swf_ActionCompile(const char* source, int version); + ActionTAG* action_End(ActionTAG*atag); ActionTAG* action_NextFrame(ActionTAG*atag); ActionTAG* action_PreviousFrame(ActionTAG*atag);