basic dump view

This commit is contained in:
honfika
2014-06-21 20:36:55 +02:00
parent 6232a141b7
commit a0804e2cb9
112 changed files with 2082 additions and 1954 deletions

View File

@@ -1437,9 +1437,9 @@ public class XFLConverter {
bits = 18;
}
if (soundFormat == SoundFormat.FORMAT_ADPCM) {
SWFInputStream sis = new SWFInputStream(swf, soundData);
exportFormat = "wav";
try {
SWFInputStream sis = new SWFInputStream(swf, soundData);
int adpcmCodeSize = (int) sis.readUB(2);
bits = 2 + adpcmCodeSize;
} catch (IOException ex) {
@@ -1453,7 +1453,7 @@ public class XFLConverter {
}
format += 4; //quality best
try {
MP3SOUNDDATA s = new MP3SOUNDDATA(swf, soundData, false);
MP3SOUNDDATA s = new MP3SOUNDDATA(new SWFInputStream(swf, soundData), false);
//sis.readSI16();
//MP3FRAME frame = new MP3FRAME(sis);
MP3FRAME frame = s.frames.get(0);