Fixed: #2290 FLA export - not generating sound bin files causing sound compression setting to be ignored

This commit is contained in:
Jindra Petřík
2024-09-22 14:42:47 +02:00
parent 236126dc84
commit f295fddd78
2 changed files with 4 additions and 2 deletions

View File

@@ -1915,7 +1915,7 @@ public class XFLConverter {
SoundTag st = (SoundTag) symbol;
byte[] data = SWFInputStream.BYTE_ARRAY_EMPTY;
try {
data = new SoundExporter().exportSound(st, convertMp3ToWav ? SoundExportMode.WAV : SoundExportMode.MP3_WAV, true);
data = new SoundExporter().exportSound(st, convertMp3ToWav ? SoundExportMode.WAV : SoundExportMode.MP3_WAV, false);
} catch (IOException ex) {
logger.log(Level.SEVERE, null, ex);
}
@@ -1931,7 +1931,7 @@ public class XFLConverter {
}
String datFileName = null;
if (convertMp3ToWav && decodedData != null) {
if (decodedData != null) {
long ts = getTimestamp(swf);
datFileName = "M " + (datfiles.size() + 1) + " " + ts + ".dat";
datfiles.put(datFileName, decodedData);