From: kramm Date: Sun, 23 Apr 2006 19:15:22 +0000 (+0000) Subject: export sounds X-Git-Tag: release-0-8-0~207 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=091232d4bdf4e0e90efcd53b3057e236d9c8705d;p=swftools.git export sounds --- diff --git a/src/swfc.c b/src/swfc.c index db29f85..db5ae8b 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1266,7 +1266,15 @@ void s_sound(char*name, char*filename) { swf_SetSoundDefine(tag, samples, numsamples); } - + + tag = swf_InsertTag(tag, ST_NAMECHARACTER); + swf_SetU16(tag, id); + swf_SetString(tag, name); + tag = swf_InsertTag(tag, ST_EXPORTASSETS); + swf_SetU16(tag, 1); + swf_SetU16(tag, id); + swf_SetString(tag, name); + sound = (sound_t*)malloc(sizeof(sound_t)); /* mem leak */ sound->tag = tag; sound->id = id;