From 091232d4bdf4e0e90efcd53b3057e236d9c8705d Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 23 Apr 2006 19:15:22 +0000 Subject: [PATCH] export sounds --- src/swfc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 1.7.10.4