export sounds
authorkramm <kramm>
Sun, 23 Apr 2006 19:15:22 +0000 (19:15 +0000)
committerkramm <kramm>
Sun, 23 Apr 2006 19:15:22 +0000 (19:15 +0000)
src/swfc.c

index db29f85..db5ae8b 100644 (file)
@@ -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;