mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-26 08:45:35 +00:00
clear sound cache after replacing sound
This commit is contained in:
@@ -2513,6 +2513,10 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
}
|
||||
}
|
||||
|
||||
public void clearSoundCache() {
|
||||
soundCache.clear();
|
||||
}
|
||||
|
||||
public void clearScriptCache() {
|
||||
as2PcodeCache.clear();
|
||||
as2Cache.clear();
|
||||
@@ -2890,7 +2894,8 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
timelined.setModified(true);
|
||||
timelined.resetTimeline();
|
||||
} else // timeline should be always the swf here
|
||||
if (removeDependencies) {
|
||||
{
|
||||
if (removeDependencies) {
|
||||
removeTagWithDependenciesFromTimeline(tag, timelined.getTimeline());
|
||||
timelined.setModified(true);
|
||||
} else {
|
||||
@@ -2899,6 +2904,7 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
timelined.setModified(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1807,8 +1807,8 @@ public class XFLConverter {
|
||||
}
|
||||
format += 4; //quality best
|
||||
try {
|
||||
MP3SOUNDDATA s = new MP3SOUNDDATA(new SWFInputStream(swf, soundData), false);
|
||||
//sis.readSI16();
|
||||
SWFInputStream sis = new SWFInputStream(swf, soundData);
|
||||
MP3SOUNDDATA s = new MP3SOUNDDATA(sis, false);
|
||||
//MP3FRAME frame = new MP3FRAME(sis);
|
||||
MP3FRAME frame = s.frames.get(0);
|
||||
int bitRate = frame.getBitRate();
|
||||
|
||||
Reference in New Issue
Block a user