X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frfxswf.h;h=6da4a5004d58e09cc85d01943a501a91331cdb5c;hb=13d9ea259d0085504bb34f9c1de501eab00d376b;hp=2dc338d134b4902de4a9e892a278ed162e51061f;hpb=b415635e319943b44a72f4afa8265b5babed47b2;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 2dc338d..6da4a50 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -38,6 +38,7 @@ extern "C" { /* little/big endian stuff */ +#define PUT8(ptr,x) {((U8*)(ptr))[0]=x;} #define PUT16(ptr,x) {((U8*)(ptr))[0]=(U8)(x);((U8*)(ptr))[1]=(U8)((x)>>8);} #define PUT32(ptr,x) {((U8*)(ptr))[0]=(U8)(x);((U8*)(ptr))[1]=(U8)((x)>>8);((U8*)(ptr))[2]=(U8)((x)>>16);((U8*)(ptr))[3]=(U8)((x)>>24);} #define GET16(ptr) (((U16)(((U8*)(ptr))[0]))+(((U16)(((U8*)(ptr))[1]))<<8)) @@ -653,7 +654,7 @@ int swf_SetLosslessBitsGrayscale(TAG * t,U16 width,U16 height,U8 * bitmap); // swfsound.c void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples); -void swf_SetSoundStreamBlock(TAG*tag, S16*samples, char first); /* expects 2304 samples */ +void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int seek, char first); /* expects 2304 samples */ void swf_SetSoundDefine(TAG*tag, S16*samples, int num);