mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-22 10:45:34 +00:00
Enlarge timeline for soundstream when necessary
This commit is contained in:
@@ -292,6 +292,19 @@ public abstract class SoundStreamHeadTypeTag extends Tag implements CharacterIdT
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int framesBefore = timelined.getFrameCount();
|
||||
//enlarge timeline when necessary
|
||||
while (!blocks.isEmpty()) {
|
||||
SoundStreamBlockTag block = blocks.remove(0);
|
||||
block.setTimelined(timelined);
|
||||
timelined.addTag(block);
|
||||
ShowFrameTag sft = new ShowFrameTag(swf);
|
||||
sft.setTimelined(timelined);
|
||||
timelined.addTag(sft);
|
||||
framesBefore++;
|
||||
}
|
||||
timelined.setFrameCount(framesBefore);
|
||||
setSoundCompression(newSoundFormat);
|
||||
setSoundSampleCount((int) newSoundSampleCount);
|
||||
setSoundSize(newSoundSize);
|
||||
|
||||
Reference in New Issue
Block a user