project: Rev 182
This commit is contained in:
@@ -4,109 +4,109 @@ import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("de")
|
||||
@ObfuscatedName("dn")
|
||||
@Implements("Instrument")
|
||||
public class Instrument {
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("e")
|
||||
@Export("Instrument_samples")
|
||||
static int[] Instrument_samples;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("z")
|
||||
@Export("Instrument_noise")
|
||||
static int[] Instrument_noise;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("a")
|
||||
@Export("Instrument_sine")
|
||||
static int[] Instrument_sine;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("l")
|
||||
@Export("Instrument_phases")
|
||||
static int[] Instrument_phases;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("h")
|
||||
@Export("Instrument_delays")
|
||||
static int[] Instrument_delays;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("v")
|
||||
@Export("Instrument_volumeSteps")
|
||||
static int[] Instrument_volumeSteps;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("m")
|
||||
@Export("Instrument_pitchSteps")
|
||||
static int[] Instrument_pitchSteps;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("o")
|
||||
@Export("Instrument_pitchBaseSteps")
|
||||
static int[] Instrument_pitchBaseSteps;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("pitch")
|
||||
SoundEnvelope pitch;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("volume")
|
||||
SoundEnvelope volume;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("pitchModifier")
|
||||
SoundEnvelope pitchModifier;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("pitchModifierAmplitude")
|
||||
SoundEnvelope pitchModifierAmplitude;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("volumeMultiplier")
|
||||
SoundEnvelope volumeMultiplier;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("volumeMultiplierAmplitude")
|
||||
SoundEnvelope volumeMultiplierAmplitude;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("release")
|
||||
SoundEnvelope release;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("attack")
|
||||
SoundEnvelope attack;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@Export("oscillatorVolume")
|
||||
int[] oscillatorVolume;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("d")
|
||||
@Export("oscillatorPitch")
|
||||
int[] oscillatorPitch;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@Export("oscillatorDelays")
|
||||
int[] oscillatorDelays;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("c")
|
||||
@Export("delayTime")
|
||||
int delayTime;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("r")
|
||||
@Export("delayDecay")
|
||||
int delayDecay;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldy;"
|
||||
signature = "Ldp;"
|
||||
)
|
||||
@Export("filter")
|
||||
AudioFilter filter;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldw;"
|
||||
signature = "Ldv;"
|
||||
)
|
||||
@Export("filterEnvelope")
|
||||
SoundEnvelope filterEnvelope;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("b")
|
||||
@Export("duration")
|
||||
int duration;
|
||||
@ObfuscatedName("g")
|
||||
@@ -146,219 +146,230 @@ public class Instrument {
|
||||
this.offset = 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("s")
|
||||
@Export("synthesize")
|
||||
final int[] synthesize(int var1, int var2) {
|
||||
class301.clearIntArray(Instrument_samples, 0, var1);
|
||||
class300.clearIntArray(Instrument_samples, 0, var1);
|
||||
if (var2 < 10) {
|
||||
return Instrument_samples;
|
||||
}
|
||||
double var3 = (double)var1 / ((double)var2 + 0.0D);
|
||||
this.pitch.reset();
|
||||
this.volume.reset();
|
||||
int var5 = 0;
|
||||
int var6 = 0;
|
||||
int var7 = 0;
|
||||
if (this.pitchModifier != null) {
|
||||
this.pitchModifier.reset();
|
||||
this.pitchModifierAmplitude.reset();
|
||||
var5 = (int)((double)(this.pitchModifier.end - this.pitchModifier.start) * 32.768D / var3);
|
||||
var6 = (int)((double)this.pitchModifier.start * 32.768D / var3);
|
||||
}
|
||||
|
||||
int var8 = 0;
|
||||
int var9 = 0;
|
||||
int var10 = 0;
|
||||
if (this.volumeMultiplier != null) {
|
||||
this.volumeMultiplier.reset();
|
||||
this.volumeMultiplierAmplitude.reset();
|
||||
var8 = (int)((this.volumeMultiplier.end - this.volumeMultiplier.start) * 32.768D / var3);
|
||||
var9 = (int)(this.volumeMultiplier.start * 32.768D / var3);
|
||||
}
|
||||
|
||||
for (int var11 = 0; var11 < 5; ++var11) {
|
||||
if (this.oscillatorVolume[var11] != 0) {
|
||||
Instrument_phases[var11] = 0;
|
||||
Instrument_delays[var11] = (int)((double)this.oscillatorDelays[var11] * var3);
|
||||
Instrument_volumeSteps[var11] = (this.oscillatorVolume[var11] << 14) / 100;
|
||||
Instrument_pitchSteps[var11] = (int)((double)(this.pitch.end - this.pitch.start) * 32.768D * Math.pow(1.0057929410678534D, (double)this.oscillatorPitch[var11]) / var3);
|
||||
Instrument_pitchBaseSteps[var11] = (int)((double)this.pitch.start * 32.768D / var3);
|
||||
}
|
||||
}
|
||||
|
||||
for (int var11 = 0; var11 < var1; ++var11) {
|
||||
int var12 = this.pitch.doStep(var1);
|
||||
int var13 = this.volume.doStep(var1);
|
||||
} else {
|
||||
double var3 = (double)var1 / ((double)var2 + 0.0D);
|
||||
this.pitch.reset();
|
||||
this.volume.reset();
|
||||
int var5 = 0;
|
||||
int var6 = 0;
|
||||
int var7 = 0;
|
||||
if (this.pitchModifier != null) {
|
||||
int var14 = this.pitchModifier.doStep(var1);
|
||||
int var15 = this.pitchModifierAmplitude.doStep(var1);
|
||||
var12 += this.evaluateWave(var7, var15, this.pitchModifier.form) >> 1;
|
||||
var7 = var7 + var6 + (var14 * var5 >> 16);
|
||||
this.pitchModifier.reset();
|
||||
this.pitchModifierAmplitude.reset();
|
||||
var5 = (int)((double)(this.pitchModifier.end - this.pitchModifier.start) * 32.768D / var3);
|
||||
var6 = (int)((double)this.pitchModifier.start * 32.768D / var3);
|
||||
}
|
||||
|
||||
int var8 = 0;
|
||||
int var9 = 0;
|
||||
int var10 = 0;
|
||||
if (this.volumeMultiplier != null) {
|
||||
int var14 = this.volumeMultiplier.doStep(var1);
|
||||
int var15 = this.volumeMultiplierAmplitude.doStep(var1);
|
||||
var13 = var13 * ((this.evaluateWave(var10, var15, this.volumeMultiplier.form) >> 1) + 32768) >> 15;
|
||||
var10 = var10 + var9 + (var14 * var8 >> 16);
|
||||
this.volumeMultiplier.reset();
|
||||
this.volumeMultiplierAmplitude.reset();
|
||||
var8 = (int)((double)(this.volumeMultiplier.end - this.volumeMultiplier.start) * 32.768D / var3);
|
||||
var9 = (int)((double)this.volumeMultiplier.start * 32.768D / var3);
|
||||
}
|
||||
|
||||
for (int var14 = 0; var14 < 5; ++var14) {
|
||||
if (this.oscillatorVolume[var14] != 0) {
|
||||
int var15 = Instrument_delays[var14] + var11;
|
||||
if (var15 < var1) {
|
||||
Instrument_samples[var15] += this.evaluateWave(Instrument_phases[var14], var13 * Instrument_volumeSteps[var14] >> 15, this.pitch.form);
|
||||
Instrument_phases[var14] += (var12 * Instrument_pitchSteps[var14] >> 16) + Instrument_pitchBaseSteps[var14];
|
||||
int var11;
|
||||
for (var11 = 0; var11 < 5; ++var11) {
|
||||
if (this.oscillatorVolume[var11] != 0) {
|
||||
Instrument_phases[var11] = 0;
|
||||
Instrument_delays[var11] = (int)((double)this.oscillatorDelays[var11] * var3);
|
||||
Instrument_volumeSteps[var11] = (this.oscillatorVolume[var11] << 14) / 100;
|
||||
Instrument_pitchSteps[var11] = (int)((double)(this.pitch.end - this.pitch.start) * 32.768D * Math.pow(1.0057929410678534D, (double)this.oscillatorPitch[var11]) / var3);
|
||||
Instrument_pitchBaseSteps[var11] = (int)((double)this.pitch.start * 32.768D / var3);
|
||||
}
|
||||
}
|
||||
|
||||
int var12;
|
||||
int var13;
|
||||
int var14;
|
||||
int var15;
|
||||
int[] var10000;
|
||||
for (var11 = 0; var11 < var1; ++var11) {
|
||||
var12 = this.pitch.doStep(var1);
|
||||
var13 = this.volume.doStep(var1);
|
||||
if (this.pitchModifier != null) {
|
||||
var14 = this.pitchModifier.doStep(var1);
|
||||
var15 = this.pitchModifierAmplitude.doStep(var1);
|
||||
var12 += this.evaluateWave(var7, var15, this.pitchModifier.form) >> 1;
|
||||
var7 = var7 + var6 + (var14 * var5 >> 16);
|
||||
}
|
||||
|
||||
if (this.volumeMultiplier != null) {
|
||||
var14 = this.volumeMultiplier.doStep(var1);
|
||||
var15 = this.volumeMultiplierAmplitude.doStep(var1);
|
||||
var13 = var13 * ((this.evaluateWave(var10, var15, this.volumeMultiplier.form) >> 1) + 32768) >> 15;
|
||||
var10 = var10 + var9 + (var14 * var8 >> 16);
|
||||
}
|
||||
|
||||
for (var14 = 0; var14 < 5; ++var14) {
|
||||
if (this.oscillatorVolume[var14] != 0) {
|
||||
var15 = Instrument_delays[var14] + var11;
|
||||
if (var15 < var1) {
|
||||
var10000 = Instrument_samples;
|
||||
var10000[var15] += this.evaluateWave(Instrument_phases[var14], var13 * Instrument_volumeSteps[var14] >> 15, this.pitch.form);
|
||||
var10000 = Instrument_phases;
|
||||
var10000[var14] += (var12 * Instrument_pitchSteps[var14] >> 16) + Instrument_pitchBaseSteps[var14];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.release != null) {
|
||||
this.release.reset();
|
||||
this.attack.reset();
|
||||
int var11 = 0;
|
||||
boolean var19 = false;
|
||||
boolean var20 = true;
|
||||
for (int var14 = 0; var14 < var1; ++var14) {
|
||||
int var12;
|
||||
int var15 = this.release.doStep(var1);
|
||||
int var16 = this.attack.doStep(var1);
|
||||
if (var20) {
|
||||
var12 = (var15 * (this.release.end - this.release.start) >> 8) + this.release.start;
|
||||
} else {
|
||||
var12 = (var16 * (this.release.end - this.release.start) >> 8) + this.release.start;
|
||||
}
|
||||
int var16;
|
||||
if (this.release != null) {
|
||||
this.release.reset();
|
||||
this.attack.reset();
|
||||
var11 = 0;
|
||||
boolean var19 = false;
|
||||
boolean var20 = true;
|
||||
|
||||
var11 += 256;
|
||||
if (var11 >= var12) {
|
||||
var11 = 0;
|
||||
var20 = !var20;
|
||||
}
|
||||
|
||||
if (var20) {
|
||||
Instrument_samples[var14] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.delayTime > 0 && this.delayDecay > 0) {
|
||||
int var11 = (int)((double)this.delayTime * var3);
|
||||
|
||||
for (int var12 = var11; var12 < var1; ++var12) {
|
||||
Instrument_samples[var12] += Instrument_samples[var12 - var11] * this.delayDecay / 100;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.filter.pairs[0] > 0 || this.filter.pairs[1] > 0) {
|
||||
this.filterEnvelope.reset();
|
||||
int var11 = this.filterEnvelope.doStep(var1 + 1);
|
||||
int var12 = this.filter.compute(0, (float)var11 / 65536.0F);
|
||||
int var13 = this.filter.compute(1, (float)var11 / 65536.0F);
|
||||
if (var1 >= var12 + var13) {
|
||||
int var14 = 0;
|
||||
int var15 = var13;
|
||||
if (var13 > var1 - var12) {
|
||||
var15 = var1 - var12;
|
||||
}
|
||||
|
||||
while (var14 < var15) {
|
||||
int var16 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
|
||||
|
||||
for (int var17 = 0; var17 < var12; ++var17) {
|
||||
var16 += (int)((long)Instrument_samples[var14 + var12 - 1 - var17] * (long)AudioFilter.coefficients[0][var17] >> 16);
|
||||
for (var14 = 0; var14 < var1; ++var14) {
|
||||
var15 = this.release.doStep(var1);
|
||||
var16 = this.attack.doStep(var1);
|
||||
if (var20) {
|
||||
var12 = (var15 * (this.release.end - this.release.start) >> 8) + this.release.start;
|
||||
} else {
|
||||
var12 = (var16 * (this.release.end - this.release.start) >> 8) + this.release.start;
|
||||
}
|
||||
|
||||
for (int var17 = 0; var17 < var14; ++var17) {
|
||||
var16 -= (int)((long)Instrument_samples[var14 - 1 - var17] * (long)AudioFilter.coefficients[1][var17] >> 16);
|
||||
var11 += 256;
|
||||
if (var11 >= var12) {
|
||||
var11 = 0;
|
||||
var20 = !var20;
|
||||
}
|
||||
|
||||
Instrument_samples[var14] = var16;
|
||||
var11 = this.filterEnvelope.doStep(var1 + 1);
|
||||
++var14;
|
||||
if (var20) {
|
||||
Instrument_samples[var14] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var15 = 128;
|
||||
if (this.delayTime > 0 && this.delayDecay > 0) {
|
||||
var11 = (int)((double)this.delayTime * var3);
|
||||
|
||||
while (true) {
|
||||
if (var15 > var1 - var12) {
|
||||
for (var12 = var11; var12 < var1; ++var12) {
|
||||
var10000 = Instrument_samples;
|
||||
var10000[var12] += Instrument_samples[var12 - var11] * this.delayDecay / 100;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.filter.pairs[0] > 0 || this.filter.pairs[1] > 0) {
|
||||
this.filterEnvelope.reset();
|
||||
var11 = this.filterEnvelope.doStep(var1 + 1);
|
||||
var12 = this.filter.compute(0, (float)var11 / 65536.0F);
|
||||
var13 = this.filter.compute(1, (float)var11 / 65536.0F);
|
||||
if (var1 >= var12 + var13) {
|
||||
var14 = 0;
|
||||
var15 = var13;
|
||||
if (var13 > var1 - var12) {
|
||||
var15 = var1 - var12;
|
||||
}
|
||||
|
||||
int var17;
|
||||
while (var14 < var15) {
|
||||
int var17 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
|
||||
var16 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
|
||||
|
||||
for (int var18 = 0; var18 < var12; ++var18) {
|
||||
var17 += (int)((long)Instrument_samples[var14 + var12 - 1 - var18] * (long)AudioFilter.coefficients[0][var18] >> 16);
|
||||
for (var17 = 0; var17 < var12; ++var17) {
|
||||
var16 += (int)((long)Instrument_samples[var14 + var12 - 1 - var17] * (long)AudioFilter.coefficients[0][var17] >> 16);
|
||||
}
|
||||
|
||||
for (int var18 = 0; var18 < var13; ++var18) {
|
||||
var17 -= (int)((long)Instrument_samples[var14 - 1 - var18] * (long)AudioFilter.coefficients[1][var18] >> 16);
|
||||
for (var17 = 0; var17 < var14; ++var17) {
|
||||
var16 -= (int)((long)Instrument_samples[var14 - 1 - var17] * (long)AudioFilter.coefficients[1][var17] >> 16);
|
||||
}
|
||||
|
||||
Instrument_samples[var14] = var17;
|
||||
Instrument_samples[var14] = var16;
|
||||
var11 = this.filterEnvelope.doStep(var1 + 1);
|
||||
++var14;
|
||||
}
|
||||
|
||||
if (var14 < var1 - var12) {
|
||||
var12 = this.filter.compute(0, (float) var11 / 65536.0F);
|
||||
var13 = this.filter.compute(1, (float) var11 / 65536.0F);
|
||||
var15 = 128;
|
||||
|
||||
while (true) {
|
||||
if (var15 > var1 - var12) {
|
||||
var15 = var1 - var12;
|
||||
}
|
||||
|
||||
int var18;
|
||||
while (var14 < var15) {
|
||||
var17 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
|
||||
|
||||
for (var18 = 0; var18 < var12; ++var18) {
|
||||
var17 += (int)((long)Instrument_samples[var14 + var12 - 1 - var18] * (long)AudioFilter.coefficients[0][var18] >> 16);
|
||||
}
|
||||
|
||||
for (var18 = 0; var18 < var13; ++var18) {
|
||||
var17 -= (int)((long)Instrument_samples[var14 - 1 - var18] * (long)AudioFilter.coefficients[1][var18] >> 16);
|
||||
}
|
||||
|
||||
Instrument_samples[var14] = var17;
|
||||
var11 = this.filterEnvelope.doStep(var1 + 1);
|
||||
++var14;
|
||||
}
|
||||
|
||||
if (var14 >= var1 - var12) {
|
||||
while (var14 < var1) {
|
||||
var17 = 0;
|
||||
|
||||
for (var18 = var14 + var12 - var1; var18 < var12; ++var18) {
|
||||
var17 += (int)((long)Instrument_samples[var14 + var12 - 1 - var18] * (long)AudioFilter.coefficients[0][var18] >> 16);
|
||||
}
|
||||
|
||||
for (var18 = 0; var18 < var13; ++var18) {
|
||||
var17 -= (int)((long)Instrument_samples[var14 - 1 - var18] * (long)AudioFilter.coefficients[1][var18] >> 16);
|
||||
}
|
||||
|
||||
Instrument_samples[var14] = var17;
|
||||
this.filterEnvelope.doStep(var1 + 1);
|
||||
++var14;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
var12 = this.filter.compute(0, (float)var11 / 65536.0F);
|
||||
var13 = this.filter.compute(1, (float)var11 / 65536.0F);
|
||||
var15 += 128;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
while (var14 < var1) {
|
||||
int var17 = 0;
|
||||
|
||||
for (int var18 = var14 + var12 - var1; var18 < var12; ++var18) {
|
||||
var17 += (int) ((long) Instrument_samples[var14 + var12 - 1 - var18] * (long) AudioFilter.coefficients[0][var18] >> 16);
|
||||
}
|
||||
|
||||
for (int var18 = 0; var18 < var13; ++var18) {
|
||||
var17 -= (int) ((long) Instrument_samples[var14 - 1 - var18] * (long) AudioFilter.coefficients[1][var18] >> 16);
|
||||
}
|
||||
|
||||
Instrument_samples[var14] = var17;
|
||||
this.filterEnvelope.doStep(var1 + 1);
|
||||
++var14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int var11 = 0; var11 < var1; ++var11) {
|
||||
if (Instrument_samples[var11] < -32768) {
|
||||
Instrument_samples[var11] = -32768;
|
||||
for (var11 = 0; var11 < var1; ++var11) {
|
||||
if (Instrument_samples[var11] < -32768) {
|
||||
Instrument_samples[var11] = -32768;
|
||||
}
|
||||
|
||||
if (Instrument_samples[var11] > 32767) {
|
||||
Instrument_samples[var11] = 32767;
|
||||
}
|
||||
}
|
||||
|
||||
if (Instrument_samples[var11] > 0x7fff) {
|
||||
Instrument_samples[var11] = 0x7fff;
|
||||
}
|
||||
return Instrument_samples;
|
||||
}
|
||||
|
||||
return Instrument_samples;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@Export("evaluateWave")
|
||||
final int evaluateWave(int var1, int var2, int var3) {
|
||||
if (var3 == 1) {
|
||||
return (var1 & 0x7fff) < 16384 ? var2 : -var2;
|
||||
return (var1 & 32767) < 16384 ? var2 : -var2;
|
||||
} else if (var3 == 2) {
|
||||
return Instrument_sine[var1 & 32767] * var2 >> 14;
|
||||
} else if (var3 == 3) {
|
||||
return (var2 * (var1 & 32767) >> 14) - var2;
|
||||
} else {
|
||||
return var3 == 4 ? var2 * Instrument_noise[var1 / 2607 & 32767] : 0;
|
||||
}
|
||||
if (var3 == 2) {
|
||||
return Instrument_sine[var1 & 0x7fff] * var2 >> 14;
|
||||
}
|
||||
if (var3 == 3) {
|
||||
return (var2 * (var1 & 0x7fff) >> 14) - var2;
|
||||
}
|
||||
return var3 == 4 ? var2 * Instrument_noise[var1 / 2607 & 0x7fff] : 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkf;)V"
|
||||
signature = "(Lky;)V"
|
||||
)
|
||||
@Export("decode")
|
||||
final void decode(Buffer var1) {
|
||||
@@ -410,6 +421,6 @@ public class Instrument {
|
||||
this.offset = var1.readUnsignedShort();
|
||||
this.filter = new AudioFilter();
|
||||
this.filterEnvelope = new SoundEnvelope();
|
||||
this.filter.method2680(var1, this.filterEnvelope);
|
||||
this.filter.method2637(var1, this.filterEnvelope);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user