FLA export - sounds

Wav export (for ADPCM sounds)
This commit is contained in:
Jindra Petk
2013-05-18 16:42:07 +02:00
parent 3c83eefc5c
commit db6f121ca8
13 changed files with 518 additions and 84 deletions

View File

@@ -181,7 +181,7 @@ public class SWFInputStream extends InputStream {
return bytesRead;
}
private void alignByte() {
public void alignByte() {
bitPos = 0;
}
private int lastPercent = -1;
@@ -2974,4 +2974,11 @@ public class SWFInputStream extends InputStream {
public int available() throws IOException {
return is.available();
}
public long availableBits() throws IOException {
if (bitPos > 0) {
return available() * 8 + (8 - bitPos);
}
return available() * 8;
}
}