do not copy big byte arrays, store only references (ByteArrayRange) e.g in image tags

This commit is contained in:
2014-11-09 22:40:36 +01:00
parent 270cc40856
commit 3456d04d38
151 changed files with 2787 additions and 2512 deletions
@@ -1395,7 +1395,7 @@ public class XFLConverter {
for (Tag t : tags) {
if (found && (t instanceof SoundStreamBlockTag)) {
SoundStreamBlockTag bl = (SoundStreamBlockTag) t;
soundData = bl.streamSoundData;
soundData = bl.streamSoundData.getRangeData();
break;
}
if (t == symbol) {
@@ -1407,7 +1407,7 @@ public class XFLConverter {
soundFormat = sound.soundFormat;
soundRate = sound.soundRate;
soundType = sound.soundType;
soundData = sound.soundData;
soundData = sound.soundData.getRangeData();
soundSize = sound.soundSize;
soundSampleCount = sound.soundSampleCount;
}