mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 02:05:28 +00:00
#1194 Wrong sound effects in fla
This commit is contained in:
@@ -90,6 +90,7 @@ import com.jpexs.decompiler.flash.helpers.hilight.Highlighting;
|
||||
import com.jpexs.decompiler.flash.tags.ABCContainerTag;
|
||||
import com.jpexs.decompiler.flash.tags.DebugIDTag;
|
||||
import com.jpexs.decompiler.flash.tags.DefineBinaryDataTag;
|
||||
import com.jpexs.decompiler.flash.tags.DefineSoundTag;
|
||||
import com.jpexs.decompiler.flash.tags.DefineSpriteTag;
|
||||
import com.jpexs.decompiler.flash.tags.DoInitActionTag;
|
||||
import com.jpexs.decompiler.flash.tags.EnableDebugger2Tag;
|
||||
@@ -554,6 +555,19 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
return null;
|
||||
}
|
||||
|
||||
public DefineSoundTag getSound(int soundId) {
|
||||
CharacterTag characterTag = getCharacters().get(soundId);
|
||||
if (characterTag instanceof DefineSoundTag) {
|
||||
return (DefineSoundTag) characterTag;
|
||||
}
|
||||
|
||||
if (characterTag != null) {
|
||||
logger.log(Level.SEVERE, "CharacterTag should be a DefineSoundTag. characterId: {0}", soundId);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public TextTag getText(int textId) {
|
||||
CharacterTag characterTag = getCharacters().get(textId);
|
||||
if (characterTag instanceof TextTag) {
|
||||
|
||||
Reference in New Issue
Block a user