From f0b5cf8d05afc8890e79f324e3b9254f941afb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 19 Aug 2024 17:43:38 +0200 Subject: [PATCH] Fixed: #2284 FLA export - sounds should be WAV or MP3, not FLV --- CHANGELOG.md | 2 ++ .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b8da0b44..4acfef35e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. - Embed tag - Wav files need to be embedded in assets.swf - [#2282] FLA export - visible flag - Opening loaded files while playing even if not a valid SWF file - like images +- [#2284] FLA export - sounds should be WAV or MP3, not FLV ### Changed - Compound script has slot/const traits inside main script initializer @@ -3525,6 +3526,7 @@ Major version of SWF to XML export changed to 2. [#2277]: https://www.free-decompiler.com/flash/issues/2277 [#2279]: https://www.free-decompiler.com/flash/issues/2279 [#2282]: https://www.free-decompiler.com/flash/issues/2282 +[#2284]: https://www.free-decompiler.com/flash/issues/2284 [#2269]: https://www.free-decompiler.com/flash/issues/2269 [#2270]: https://www.free-decompiler.com/flash/issues/2270 [#2221]: https://www.free-decompiler.com/flash/issues/2221 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index 29d128307..7690c936c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -1770,7 +1770,7 @@ public class XFLConverter { long soundSampleCount = 0; byte[] soundData = SWFInputStream.BYTE_ARRAY_EMPTY; int[] rateMap = {5, 11, 22, 44}; - String exportFormat = "flv"; + String exportFormat = "wav"; if (symbol instanceof SoundStreamFrameRange) { SoundStreamHeadTypeTag head = ((SoundStreamFrameRange) symbol).getHead(); soundFormat = head.getSoundFormatId();