Added GFX - DefineExternalSound and DefineExternalStreamSound playback

This commit is contained in:
Jindra Petřík
2023-01-09 21:37:06 +01:00
parent 1447e92289
commit 52c17de7b2
13 changed files with 299 additions and 57 deletions
@@ -52,6 +52,7 @@ import com.jpexs.decompiler.flash.tags.base.RenderContext;
import com.jpexs.decompiler.flash.tags.base.ShapeTag;
import com.jpexs.decompiler.flash.tags.base.SoundStreamHeadTypeTag;
import com.jpexs.decompiler.flash.tags.base.TextTag;
import com.jpexs.decompiler.flash.tags.gfx.DefineExternalStreamSound;
import com.jpexs.decompiler.flash.types.BlendMode;
import com.jpexs.decompiler.flash.types.CLIPACTIONS;
import com.jpexs.decompiler.flash.types.CXFORMWITHALPHA;
@@ -565,11 +566,16 @@ public class Timeline {
for (Tag t : tags) {
if (t instanceof SoundStreamHeadTypeTag) {
SoundStreamHeadTypeTag head = (SoundStreamHeadTypeTag) t;
head.setVirtualCharacterId(containerId);
head.setCharacterId(containerId);
blocks = new ArrayList<>();
soundStramBlocks.put(containerId, blocks);
continue;
}
if (t instanceof DefineExternalStreamSound) {
DefineExternalStreamSound externalStream = (DefineExternalStreamSound) t;
externalStream.setCharacterId(containerId);
continue;
}
if (t instanceof DefineSpriteTag) {
DefineSpriteTag sprite = (DefineSpriteTag) t;