runescape-client: fix the thing

This commit is contained in:
ThatGamerBlue
2020-12-11 06:14:29 +00:00
parent f74baf08ce
commit 463bc42f5f
325 changed files with 35526 additions and 35531 deletions

View File

@@ -22,19 +22,19 @@ public class RawSound extends AbstractSound {
public boolean field1408;
RawSound(int var1, byte[] var2, int var3, int var4) {
this.sampleRate = var1;
this.samples = var2;
this.start = var3;
this.end = var4;
}
this.sampleRate = var1; // L: 13
this.samples = var2; // L: 14
this.start = var3; // L: 15
this.end = var4; // L: 16
} // L: 17
RawSound(int var1, byte[] var2, int var3, int var4, boolean var5) {
this.sampleRate = var1;
this.samples = var2;
this.start = var3;
this.end = var4;
this.field1408 = var5;
}
this.sampleRate = var1; // L: 20
this.samples = var2; // L: 21
this.start = var3; // L: 22
this.end = var4; // L: 23
this.field1408 = var5; // L: 24
} // L: 25
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -42,18 +42,18 @@ public class RawSound extends AbstractSound {
)
@Export("resample")
public RawSound resample(Decimator var1) {
this.samples = var1.resample(this.samples);
this.sampleRate = var1.scaleRate(this.sampleRate);
if (this.start == this.end) {
this.samples = var1.resample(this.samples); // L: 28
this.sampleRate = var1.scaleRate(this.sampleRate); // L: 29
if (this.start == this.end) { // L: 30
this.start = this.end = var1.scalePosition(this.start);
} else {
this.start = var1.scalePosition(this.start);
this.end = var1.scalePosition(this.end);
if (this.start == this.end) {
this.start = var1.scalePosition(this.start); // L: 32
this.end = var1.scalePosition(this.end); // L: 33
if (this.start == this.end) { // L: 34
--this.start;
}
}
return this;
return this; // L: 36
}
}