Use newer version of fernflower and remove __xx names
This commit is contained in:
@@ -25,17 +25,17 @@ public class SoundEffect {
|
||||
SoundEffect(Buffer var1) {
|
||||
this.instruments = new Instrument[10];
|
||||
|
||||
for(int var2 = 0; var2 < 10; ++var2) {
|
||||
for (int var2 = 0; var2 < 10; ++var2) {
|
||||
int var3 = var1.readUnsignedByte();
|
||||
if(var3 != 0) {
|
||||
if (var3 != 0) {
|
||||
--var1.index;
|
||||
this.instruments[var2] = new Instrument();
|
||||
this.instruments[var2].decode(var1);
|
||||
}
|
||||
}
|
||||
|
||||
this.start = var1.__ag_302();
|
||||
this.end = var1.__ag_302();
|
||||
this.start = var1.method43();
|
||||
this.end = var1.method43();
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@@ -49,28 +49,29 @@ public class SoundEffect {
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
public final int __q_174() {
|
||||
public final int method303() {
|
||||
int var1 = 9999999;
|
||||
|
||||
int var2;
|
||||
for(var2 = 0; var2 < 10; ++var2) {
|
||||
if(this.instruments[var2] != null && this.instruments[var2].offset / 20 < var1) {
|
||||
for (var2 = 0; var2 < 10; ++var2) {
|
||||
if (this.instruments[var2] != null && this.instruments[var2].offset / 20 < var1) {
|
||||
var1 = this.instruments[var2].offset / 20;
|
||||
}
|
||||
}
|
||||
|
||||
if(this.start < this.end && this.start / 20 < var1) {
|
||||
if (this.start < this.end && this.start / 20 < var1) {
|
||||
var1 = this.start / 20;
|
||||
}
|
||||
|
||||
if(var1 != 9999999 && var1 != 0) {
|
||||
for(var2 = 0; var2 < 10; ++var2) {
|
||||
if(this.instruments[var2] != null) {
|
||||
this.instruments[var2].offset -= var1 * 20;
|
||||
if (var1 != 9999999 && var1 != 0) {
|
||||
for (var2 = 0; var2 < 10; ++var2) {
|
||||
if (this.instruments[var2] != null) {
|
||||
Instrument var10000 = this.instruments[var2];
|
||||
var10000.offset -= var1 * 20;
|
||||
}
|
||||
}
|
||||
|
||||
if(this.start < this.end) {
|
||||
if (this.start < this.end) {
|
||||
this.start -= var1 * 20;
|
||||
this.end -= var1 * 20;
|
||||
}
|
||||
@@ -87,27 +88,27 @@ public class SoundEffect {
|
||||
int var1 = 0;
|
||||
|
||||
int var2;
|
||||
for(var2 = 0; var2 < 10; ++var2) {
|
||||
if(this.instruments[var2] != null && this.instruments[var2].duration + this.instruments[var2].offset > var1) {
|
||||
for (var2 = 0; var2 < 10; ++var2) {
|
||||
if (this.instruments[var2] != null && this.instruments[var2].duration + this.instruments[var2].offset > var1) {
|
||||
var1 = this.instruments[var2].duration + this.instruments[var2].offset;
|
||||
}
|
||||
}
|
||||
|
||||
if(var1 == 0) {
|
||||
if (var1 == 0) {
|
||||
return new byte[0];
|
||||
} else {
|
||||
var2 = var1 * 22050 / 1000;
|
||||
byte[] var3 = new byte[var2];
|
||||
|
||||
for(int var4 = 0; var4 < 10; ++var4) {
|
||||
if(this.instruments[var4] != null) {
|
||||
for (int var4 = 0; var4 < 10; ++var4) {
|
||||
if (this.instruments[var4] != null) {
|
||||
int var5 = this.instruments[var4].duration * 22050 / 1000;
|
||||
int var6 = this.instruments[var4].offset * 22050 / 1000;
|
||||
int[] var7 = this.instruments[var4].synthesize(var5, this.instruments[var4].duration);
|
||||
|
||||
for(int var8 = 0; var8 < var5; ++var8) {
|
||||
for (int var8 = 0; var8 < var5; ++var8) {
|
||||
int var9 = (var7[var8] >> 8) + var3[var8 + var6];
|
||||
if((var9 + 128 & -256) != 0) {
|
||||
if ((var9 + 128 & -256) != 0) {
|
||||
var9 = var9 >> 31 ^ 127;
|
||||
}
|
||||
|
||||
@@ -127,6 +128,6 @@ public class SoundEffect {
|
||||
@Export("readSoundEffect")
|
||||
public static SoundEffect readSoundEffect(AbstractIndexCache var0, int var1, int var2) {
|
||||
byte[] var3 = var0.takeRecord(var1, var2);
|
||||
return var3 == null?null:new SoundEffect(new Buffer(var3));
|
||||
return var3 == null ? null : new SoundEffect(new Buffer(var3));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user