mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 02:51:23 +00:00
Fixed: #2503 Exporting sound streams as FLV
Fixed: Exporting sound streams at all in nightly
This commit is contained in:
@@ -59,6 +59,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Configuration TOML file encoding (UTF-8)
|
- Configuration TOML file encoding (UTF-8)
|
||||||
- [#2496] Fonts - adding characters - truncating too wide advance widths
|
- [#2496] Fonts - adding characters - truncating too wide advance widths
|
||||||
- [#2498] Public traits with same name were not distinguishable
|
- [#2498] Public traits with same name were not distinguishable
|
||||||
|
- [#2503] Exporting sound streams as FLV
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Icon of "Deobfuscation options" menu from pile of pills to medkit
|
- Icon of "Deobfuscation options" menu from pile of pills to medkit
|
||||||
@@ -3961,6 +3962,7 @@ Major version of SWF to XML export changed to 2.
|
|||||||
[#116]: https://www.free-decompiler.com/flash/issues/116
|
[#116]: https://www.free-decompiler.com/flash/issues/116
|
||||||
[#2496]: https://www.free-decompiler.com/flash/issues/2496
|
[#2496]: https://www.free-decompiler.com/flash/issues/2496
|
||||||
[#2498]: https://www.free-decompiler.com/flash/issues/2498
|
[#2498]: https://www.free-decompiler.com/flash/issues/2498
|
||||||
|
[#2503]: https://www.free-decompiler.com/flash/issues/2503
|
||||||
[#2476]: https://www.free-decompiler.com/flash/issues/2476
|
[#2476]: https://www.free-decompiler.com/flash/issues/2476
|
||||||
[#2404]: https://www.free-decompiler.com/flash/issues/2404
|
[#2404]: https://www.free-decompiler.com/flash/issues/2404
|
||||||
[#1418]: https://www.free-decompiler.com/flash/issues/1418
|
[#1418]: https://www.free-decompiler.com/flash/issues/1418
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ public class SoundExporter {
|
|||||||
FLVOutputStream flv = new FLVOutputStream(fos);
|
FLVOutputStream flv = new FLVOutputStream(fos);
|
||||||
flv.writeHeader(true, false);
|
flv.writeHeader(true, false);
|
||||||
|
|
||||||
int ms = (int) (1000.0 / ((Tag) st).getSwf().frameRate);
|
int ms = (int) (1000.0 / sh.getSwf().frameRate);
|
||||||
for (int b = 0; b < blocks.size(); b++) {
|
for (int b = 0; b < blocks.size(); b++) {
|
||||||
byte[] data = blocks.get(b).streamSoundData.getRangeData();
|
byte[] data = blocks.get(b).streamSoundData.getRangeData();
|
||||||
if (st.getSoundFormatId() == 2) { //MP3
|
if (st.getSoundFormatId() == 2) { //MP3
|
||||||
|
|||||||
@@ -2178,6 +2178,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
|||||||
if (nodeType == TreeNodeType.SOUND) {
|
if (nodeType == TreeNodeType.SOUND) {
|
||||||
sounds.add((SoundTag) d);
|
sounds.add((SoundTag) d);
|
||||||
}
|
}
|
||||||
|
if (nodeType == TreeNodeType.SOUND_STREAM_RANGE) {
|
||||||
|
sounds.add((SoundStreamFrameRange) d);
|
||||||
|
}
|
||||||
if (nodeType == TreeNodeType.BINARY_DATA) {
|
if (nodeType == TreeNodeType.BINARY_DATA) {
|
||||||
binaryData.add((BinaryDataInterface) d);
|
binaryData.add((BinaryDataInterface) d);
|
||||||
}
|
}
|
||||||
@@ -2189,10 +2192,8 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
|||||||
} else if (nodeType == TreeNodeType.FONT) {
|
} else if (nodeType == TreeNodeType.FONT) {
|
||||||
fonts.add((Tag) d);
|
fonts.add((Tag) d);
|
||||||
}
|
}
|
||||||
if (nodeType == TreeNodeType.OTHER_TAG) {
|
if (nodeType == TreeNodeType.SYMBOL_CLASS) {
|
||||||
if (d instanceof SymbolClassTypeTag) {
|
symbolNames.add((Tag) d);
|
||||||
symbolNames.add((Tag) d);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public enum TreeNodeType {
|
|||||||
VIDEO_FRAME,
|
VIDEO_FRAME,
|
||||||
SOUND,
|
SOUND,
|
||||||
SOUND_STREAM_BLOCK,
|
SOUND_STREAM_BLOCK,
|
||||||
|
SOUND_STREAM_RANGE,
|
||||||
BINARY_DATA,
|
BINARY_DATA,
|
||||||
OTHER_TAG,
|
OTHER_TAG,
|
||||||
FOLDER,
|
FOLDER,
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 643 B |
Binary file not shown.
|
After Width: | Height: | Size: 729 B |
@@ -384,7 +384,7 @@ public abstract class AbstractTagTree extends JTree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (t instanceof SoundStreamFrameRange) {
|
if (t instanceof SoundStreamFrameRange) {
|
||||||
return TreeNodeType.SOUND_STREAM_BLOCK;
|
return TreeNodeType.SOUND_STREAM_RANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t instanceof SoundStreamBlockTag) {
|
if (t instanceof SoundStreamBlockTag) {
|
||||||
@@ -822,6 +822,9 @@ public abstract class AbstractTagTree extends JTree {
|
|||||||
if (nodeType == TreeNodeType.SOUND) {
|
if (nodeType == TreeNodeType.SOUND) {
|
||||||
ret.add(d);
|
ret.add(d);
|
||||||
}
|
}
|
||||||
|
if (nodeType == TreeNodeType.SOUND_STREAM_RANGE) {
|
||||||
|
ret.add(d);
|
||||||
|
}
|
||||||
if (nodeType == TreeNodeType.BINARY_DATA) {
|
if (nodeType == TreeNodeType.BINARY_DATA) {
|
||||||
ret.add(d);
|
ret.add(d);
|
||||||
}
|
}
|
||||||
@@ -831,11 +834,8 @@ public abstract class AbstractTagTree extends JTree {
|
|||||||
if (nodeType == TreeNodeType.FONT) {
|
if (nodeType == TreeNodeType.FONT) {
|
||||||
ret.add(d);
|
ret.add(d);
|
||||||
}
|
}
|
||||||
|
if (nodeType == TreeNodeType.SYMBOL_CLASS) {
|
||||||
if (nodeType == TreeNodeType.OTHER_TAG) {
|
ret.add(d);
|
||||||
if (d instanceof SymbolClassTypeTag) {
|
|
||||||
ret.add(d);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user