git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6feb191
)
export sounds
author
kramm
<kramm>
Sun, 23 Apr 2006 19:15:22 +0000
(19:15 +0000)
committer
kramm
<kramm>
Sun, 23 Apr 2006 19:15:22 +0000
(19:15 +0000)
src/swfc.c
patch
|
blob
|
history
diff --git
a/src/swfc.c
b/src/swfc.c
index
db29f85
..
db5ae8b
100644
(file)
--- 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;