From d8512aa6d9161ddf81bf1d8b8f5c7e9e7b336681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 5 Apr 2021 20:27:31 +0200 Subject: [PATCH] SoundStreamHead has associated sprite id in its name in the tagtree --- CHANGELOG.md | 4 ++++ .../jpexs/decompiler/flash/tags/SoundStreamHead2Tag.java | 8 +++++++- .../jpexs/decompiler/flash/tags/SoundStreamHeadTag.java | 8 +++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7782ecd9..bbd75c6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [Unreleased] +### Added +- SoundStreamHead has associated sprite id in its name in the tagtree + ## [14.4.0] - 2021-04-05 ### Added - [#1015], [#1466], [#1513] Better error messages during saving, display message on out of memory diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHead2Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHead2Tag.java index 7cb30516e..a9ce0b909 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHead2Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHead2Tag.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags; import com.jpexs.decompiler.flash.SWF; @@ -257,4 +258,9 @@ public class SoundStreamHead2Tag extends Tag implements SoundStreamHeadTypeTag { tagInfo.addInfo("general", "stereo", soundFormat.stereo); tagInfo.addInfo("general", "sampleCount", streamSoundSampleCount); } + + @Override + public String toString() { + return getName() + (virtualCharacterId > 0 ? " (" + virtualCharacterId + ")" : ""); + } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHeadTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHeadTag.java index f642d4ba8..06f04acf0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHeadTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SoundStreamHeadTag.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags; import com.jpexs.decompiler.flash.SWF; @@ -267,4 +268,9 @@ public class SoundStreamHeadTag extends Tag implements SoundStreamHeadTypeTag { tagInfo.addInfo("general", "stereo", soundFormat.stereo); tagInfo.addInfo("general", "sampleCount", streamSoundSampleCount); } + + @Override + public String toString() { + return getName() + (virtualCharacterId > 0 ? " (" + virtualCharacterId + ")" : ""); + } }