Buffer changes

This commit is contained in:
thedaneeffect committed 2021-03-10 04:09:14 -05:00
1 parent 65cd676f18
commit def89acd40
31 files changed
+1099 -1105

No files matched your search

+17 -17
View File
@@ -20,7 +20,7 @@ public class SoundTrack {
aBuffer_328 = new Buffer(aByteArray327);
SoundTone.method166();
do {
int j = buffer.getU16();
int j = buffer.get2U();
if (j == 65535) {
return;
}
@@ -41,15 +41,15 @@ public class SoundTrack {
public void method242(Buffer buffer) {
for (int i = 0; i < 10; i++) {
int j = buffer.getU8();
int j = buffer.get1U();
if (j != 0) {
buffer.position--;
aToneArray329[i] = new SoundTone();
aToneArray329[i].method169(buffer);
}
}
anInt330 = buffer.getU16();
anInt331 = buffer.getU16();
anInt330 = buffer.get2U();
anInt331 = buffer.get2U();
}
public int method243() {
@@ -80,19 +80,19 @@ public class SoundTrack {
public Buffer method244(int i) {
int k = method245(i);
aBuffer_328.position = 0;
aBuffer_328.put32(0x52494646);
aBuffer_328.put32LE(36 + k);
aBuffer_328.put32(0x57415645);
aBuffer_328.put32(0x666d7420);
aBuffer_328.put32LE(16);
aBuffer_328.put16LE(1);
aBuffer_328.put16LE(1);
aBuffer_328.put32LE(22050);
aBuffer_328.put32LE(22050);
aBuffer_328.put16LE(1);
aBuffer_328.put16LE(8);
aBuffer_328.put32(0x64617461);
aBuffer_328.put32LE(k);
aBuffer_328.put4(0x52494646);
aBuffer_328.put4LE(36 + k);
aBuffer_328.put4(0x57415645);
aBuffer_328.put4(0x666d7420);
aBuffer_328.put4LE(16);
aBuffer_328.put2LE(1);
aBuffer_328.put2LE(1);
aBuffer_328.put4LE(22050);
aBuffer_328.put4LE(22050);
aBuffer_328.put2LE(1);
aBuffer_328.put2LE(8);
aBuffer_328.put4(0x64617461);
aBuffer_328.put4LE(k);
aBuffer_328.position += k;
return aBuffer_328;
}