project: Rev 202

This commit is contained in:
Owain van Brakel
2021-12-14 18:20:58 +01:00
parent e974585ce8
commit 7c7bf0901a
406 changed files with 39725 additions and 39842 deletions

View File

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