chore: rev 188
This commit is contained in:
@@ -4,190 +4,204 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("cw")
|
||||
@ObfuscatedName("dw")
|
||||
@Implements("PcmPlayer")
|
||||
public class PcmPlayer {
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 565160271
|
||||
)
|
||||
public static int field1398;
|
||||
@ObfuscatedName("g")
|
||||
@Export("PcmPlayer_stereo")
|
||||
protected static boolean PcmPlayer_stereo;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lcx;"
|
||||
)
|
||||
@Export("pcmPlayerProvider")
|
||||
static class99 pcmPlayerProvider;
|
||||
@ObfuscatedName("n")
|
||||
@Export("samples")
|
||||
protected int[] samples;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ldl;"
|
||||
signature = "Ldn;"
|
||||
)
|
||||
@Export("stream")
|
||||
PcmStream stream;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 870880097
|
||||
intValue = -1255248085
|
||||
)
|
||||
int field1372;
|
||||
@ObfuscatedName("t")
|
||||
int field1397;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -2578951154982885373L
|
||||
longValue = -2367758414961315653L
|
||||
)
|
||||
@Export("timeMs")
|
||||
long timeMs;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1002919953
|
||||
intValue = 1798201523
|
||||
)
|
||||
@Export("capacity")
|
||||
int capacity;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1574476853
|
||||
)
|
||||
int field1373;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -87074955
|
||||
)
|
||||
int field1376;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 4761654115835358543L
|
||||
intValue = 1072458633
|
||||
)
|
||||
long field1377;
|
||||
@ObfuscatedName("h")
|
||||
int field1401;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 500699263
|
||||
intValue = -247116181
|
||||
)
|
||||
int field1371;
|
||||
@ObfuscatedName("m")
|
||||
int field1403;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1630467439
|
||||
longValue = -3370414855018982157L
|
||||
)
|
||||
int field1382;
|
||||
@ObfuscatedName("g")
|
||||
long field1396;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1827156113
|
||||
intValue = 3489373
|
||||
)
|
||||
int field1380;
|
||||
int field1404;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -9078760105487350149L
|
||||
intValue = -92983435
|
||||
)
|
||||
long field1381;
|
||||
@ObfuscatedName("q")
|
||||
boolean field1378;
|
||||
int field1405;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -658746403
|
||||
)
|
||||
int field1406;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -227900645038569121L
|
||||
)
|
||||
long field1407;
|
||||
@ObfuscatedName("u")
|
||||
boolean field1408;
|
||||
@ObfuscatedName("au")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 199004789
|
||||
intValue = 858322217
|
||||
)
|
||||
int field1375;
|
||||
@ObfuscatedName("ah")
|
||||
int field1409;
|
||||
@ObfuscatedName("ay")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Ldl;"
|
||||
signature = "[Ldn;"
|
||||
)
|
||||
PcmStream[] field1384;
|
||||
@ObfuscatedName("aq")
|
||||
PcmStream[] field1410;
|
||||
@ObfuscatedName("aa")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Ldl;"
|
||||
signature = "[Ldn;"
|
||||
)
|
||||
PcmStream[] field1385;
|
||||
PcmStream[] field1411;
|
||||
|
||||
protected PcmPlayer() {
|
||||
this.field1372 = 32;
|
||||
this.timeMs = WorldMapID.currentTimeMillis();
|
||||
this.field1377 = 0L;
|
||||
this.field1371 = 0;
|
||||
this.field1382 = 0;
|
||||
this.field1380 = 0;
|
||||
this.field1381 = 0L;
|
||||
this.field1378 = true;
|
||||
this.field1375 = 0;
|
||||
this.field1384 = new PcmStream[8];
|
||||
this.field1385 = new PcmStream[8];
|
||||
this.field1397 = 32;
|
||||
this.timeMs = WorldMapIcon_0.currentTimeMillis();
|
||||
this.field1396 = 0L;
|
||||
this.field1404 = 0;
|
||||
this.field1405 = 0;
|
||||
this.field1406 = 0;
|
||||
this.field1407 = 0L;
|
||||
this.field1408 = true;
|
||||
this.field1409 = 0;
|
||||
this.field1410 = new PcmStream[8];
|
||||
this.field1411 = new PcmStream[8];
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "15"
|
||||
garbageValue = "-111"
|
||||
)
|
||||
@Export("init")
|
||||
protected void init() throws Exception {
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "797185937"
|
||||
garbageValue = "-871749312"
|
||||
)
|
||||
@Export("open")
|
||||
protected void open(int var1) throws Exception {
|
||||
}
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "2013132005"
|
||||
garbageValue = "-164846701"
|
||||
)
|
||||
@Export("position")
|
||||
protected int position() throws Exception {
|
||||
return this.capacity;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("e")
|
||||
@Export("write")
|
||||
protected void write() throws Exception {
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(S)V",
|
||||
garbageValue = "390"
|
||||
signature = "(I)V",
|
||||
garbageValue = "1942741652"
|
||||
)
|
||||
@Export("close")
|
||||
protected void close() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "1127195595"
|
||||
garbageValue = "2088617942"
|
||||
)
|
||||
@Export("discard")
|
||||
protected void discard() throws Exception {
|
||||
}
|
||||
|
||||
@ObfuscatedName("aq")
|
||||
@ObfuscatedName("ax")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ldl;I)V",
|
||||
garbageValue = "-126312603"
|
||||
signature = "(Ldn;I)V",
|
||||
garbageValue = "1817340933"
|
||||
)
|
||||
@Export("setStream")
|
||||
public final synchronized void setStream(PcmStream var1) {
|
||||
this.stream = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ao")
|
||||
@ObfuscatedName("aj")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "23"
|
||||
signature = "(I)V",
|
||||
garbageValue = "1301441901"
|
||||
)
|
||||
@Export("run")
|
||||
public final synchronized void run() {
|
||||
if (this.samples != null) {
|
||||
long var1 = WorldMapID.currentTimeMillis();
|
||||
long var1 = WorldMapIcon_0.currentTimeMillis();
|
||||
|
||||
try {
|
||||
if (this.field1377 != 0L) {
|
||||
if (var1 < this.field1377) {
|
||||
if (0L != this.field1396) {
|
||||
if (var1 < this.field1396) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.open(this.capacity);
|
||||
this.field1377 = 0L;
|
||||
this.field1378 = true;
|
||||
this.field1396 = 0L;
|
||||
this.field1408 = true;
|
||||
}
|
||||
|
||||
int var3 = this.position();
|
||||
if (this.field1380 - var3 > this.field1371) {
|
||||
this.field1371 = this.field1380 - var3;
|
||||
if (this.field1406 - var3 > this.field1404) {
|
||||
this.field1404 = this.field1406 - var3;
|
||||
}
|
||||
|
||||
int var4 = this.field1376 + this.field1373;
|
||||
int var4 = this.field1401 + this.field1403;
|
||||
if (var4 + 256 > 16384) {
|
||||
var4 = 16128;
|
||||
}
|
||||
@@ -201,10 +215,10 @@ public class PcmPlayer {
|
||||
this.close();
|
||||
this.open(this.capacity);
|
||||
var3 = 0;
|
||||
this.field1378 = true;
|
||||
this.field1408 = true;
|
||||
if (var4 + 256 > this.capacity) {
|
||||
var4 = this.capacity - 256;
|
||||
this.field1376 = var4 - this.field1373;
|
||||
this.field1403 = var4 - this.field1401;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,28 +228,28 @@ public class PcmPlayer {
|
||||
var3 += 256;
|
||||
}
|
||||
|
||||
if (var1 > this.field1381) {
|
||||
if (!this.field1378) {
|
||||
if (this.field1371 == 0 && this.field1382 == 0) {
|
||||
if (var1 > this.field1407) {
|
||||
if (!this.field1408) {
|
||||
if (this.field1404 == 0 && this.field1405 == 0) {
|
||||
this.close();
|
||||
this.field1377 = var1 + 2000L;
|
||||
this.field1396 = 2000L + var1;
|
||||
return;
|
||||
}
|
||||
|
||||
this.field1376 = Math.min(this.field1382, this.field1371);
|
||||
this.field1382 = this.field1371;
|
||||
this.field1403 = Math.min(this.field1405, this.field1404);
|
||||
this.field1405 = this.field1404;
|
||||
} else {
|
||||
this.field1378 = false;
|
||||
this.field1408 = false;
|
||||
}
|
||||
|
||||
this.field1371 = 0;
|
||||
this.field1381 = 2000L + var1;
|
||||
this.field1404 = 0;
|
||||
this.field1407 = 2000L + var1;
|
||||
}
|
||||
|
||||
this.field1380 = var3;
|
||||
this.field1406 = var3;
|
||||
} catch (Exception var7) {
|
||||
this.close();
|
||||
this.field1377 = 2000L + var1;
|
||||
this.field1396 = var1 + 2000L;
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -243,9 +257,9 @@ public class PcmPlayer {
|
||||
var1 = this.timeMs;
|
||||
}
|
||||
|
||||
while (var1 > this.timeMs + 5000L) {
|
||||
while (var1 > 5000L + this.timeMs) {
|
||||
this.skip(256);
|
||||
this.timeMs += (long)(256000 / (DirectByteArrayCopier.field2490 * -168449264));
|
||||
this.timeMs += (long)(256000 / field1398);
|
||||
}
|
||||
} catch (Exception var6) {
|
||||
this.timeMs = var1;
|
||||
@@ -254,57 +268,57 @@ public class PcmPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("an")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "63"
|
||||
)
|
||||
public final void method2472() {
|
||||
this.field1378 = true;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ar")
|
||||
@ObfuscatedName("au")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-536403943"
|
||||
garbageValue = "-569274041"
|
||||
)
|
||||
public final void method2489() {
|
||||
this.field1408 = true;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ay")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "2064649037"
|
||||
)
|
||||
@Export("tryDiscard")
|
||||
public final synchronized void tryDiscard() {
|
||||
this.field1378 = true;
|
||||
this.field1408 = true;
|
||||
|
||||
try {
|
||||
this.discard();
|
||||
} catch (Exception var2) {
|
||||
this.close();
|
||||
this.field1377 = WorldMapID.currentTimeMillis() + 2000L;
|
||||
this.field1396 = WorldMapIcon_0.currentTimeMillis() + 2000L;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("az")
|
||||
@ObfuscatedName("aa")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-991727159"
|
||||
garbageValue = "-1437480002"
|
||||
)
|
||||
@Export("shutdown")
|
||||
public final synchronized void shutdown() {
|
||||
if (HealthBar.soundSystem != null) {
|
||||
if (UserComparator2.soundSystem != null) {
|
||||
boolean var1 = true;
|
||||
|
||||
for (int var2 = 0; var2 < 2; ++var2) {
|
||||
if (this == HealthBar.soundSystem.players[var2]) {
|
||||
HealthBar.soundSystem.players[var2] = null;
|
||||
if (this == UserComparator2.soundSystem.players[var2]) {
|
||||
UserComparator2.soundSystem.players[var2] = null;
|
||||
}
|
||||
|
||||
if (HealthBar.soundSystem.players[var2] != null) {
|
||||
if (UserComparator2.soundSystem.players[var2] != null) {
|
||||
var1 = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1) {
|
||||
FriendSystem.soundSystemExecutor.shutdownNow();
|
||||
FriendSystem.soundSystemExecutor = null;
|
||||
HealthBar.soundSystem = null;
|
||||
Frames.soundSystemExecutor.shutdownNow();
|
||||
Frames.soundSystemExecutor = null;
|
||||
UserComparator2.soundSystem = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -312,16 +326,16 @@ public class PcmPlayer {
|
||||
this.samples = null;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ay")
|
||||
@ObfuscatedName("aq")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "1228622505"
|
||||
signature = "(IB)V",
|
||||
garbageValue = "6"
|
||||
)
|
||||
@Export("skip")
|
||||
final void skip(int var1) {
|
||||
this.field1375 -= var1;
|
||||
if (this.field1375 < 0) {
|
||||
this.field1375 = 0;
|
||||
this.field1409 -= var1;
|
||||
if (this.field1409 < 0) {
|
||||
this.field1409 = 0;
|
||||
}
|
||||
|
||||
if (this.stream != null) {
|
||||
@@ -330,20 +344,20 @@ public class PcmPlayer {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("ag")
|
||||
@ObfuscatedName("as")
|
||||
@Export("fill")
|
||||
final void fill(int[] var1, int var2) {
|
||||
int var3 = var2;
|
||||
if (SoundCache.PcmPlayer_stereo) {
|
||||
if (PcmPlayer_stereo) {
|
||||
var3 = var2 << 1;
|
||||
}
|
||||
|
||||
class300.clearIntArray(var1, 0, var3);
|
||||
this.field1375 -= var2;
|
||||
if (this.stream != null && this.field1375 <= 0) {
|
||||
this.field1375 += DirectByteArrayCopier.field2490 * -168449264 >> 4;
|
||||
ChatChannel.PcmStream_disable(this.stream);
|
||||
this.method2432(this.stream, this.stream.vmethod2716());
|
||||
class301.clearIntArray(var1, 0, var3);
|
||||
this.field1409 -= var2;
|
||||
if (this.stream != null && this.field1409 <= 0) {
|
||||
this.field1409 += field1398 >> 4;
|
||||
class65.PcmStream_disable(this.stream);
|
||||
this.method2494(this.stream, this.stream.vmethod2777());
|
||||
int var4 = 0;
|
||||
int var5 = 255;
|
||||
|
||||
@@ -365,7 +379,7 @@ public class PcmPlayer {
|
||||
if ((var9 & 1) != 0) {
|
||||
var5 &= ~(1 << var7);
|
||||
var10 = null;
|
||||
PcmStream var11 = this.field1384[var7];
|
||||
PcmStream var11 = this.field1410[var7];
|
||||
|
||||
label98:
|
||||
while (true) {
|
||||
@@ -381,33 +395,33 @@ public class PcmPlayer {
|
||||
var11 = var11.after;
|
||||
} else {
|
||||
var11.active = true;
|
||||
int var13 = var11.vmethod3889();
|
||||
int var13 = var11.vmethod3965();
|
||||
var4 += var13;
|
||||
if (var12 != null) {
|
||||
var12.position += var13;
|
||||
}
|
||||
|
||||
if (var4 >= this.field1372) {
|
||||
if (var4 >= this.field1397) {
|
||||
break label104;
|
||||
}
|
||||
|
||||
PcmStream var14 = var11.firstSubStream();
|
||||
if (var14 != null) {
|
||||
for (int var15 = var11.field1454; var14 != null; var14 = var11.nextSubStream()) {
|
||||
this.method2432(var14, var15 * var14.vmethod2716() >> 8);
|
||||
for (int var15 = var11.field1478; var14 != null; var14 = var11.nextSubStream()) {
|
||||
this.method2494(var14, var15 * var14.vmethod2777() >> 8);
|
||||
}
|
||||
}
|
||||
|
||||
PcmStream var18 = var11.after;
|
||||
var11.after = null;
|
||||
if (var10 == null) {
|
||||
this.field1384[var7] = var18;
|
||||
this.field1410[var7] = var18;
|
||||
} else {
|
||||
var10.after = var18;
|
||||
}
|
||||
|
||||
if (var18 == null) {
|
||||
this.field1385[var7] = var10;
|
||||
this.field1411[var7] = var10;
|
||||
}
|
||||
|
||||
var11 = var18;
|
||||
@@ -422,9 +436,9 @@ public class PcmPlayer {
|
||||
}
|
||||
|
||||
for (var6 = 0; var6 < 8; ++var6) {
|
||||
PcmStream var16 = this.field1384[var6];
|
||||
PcmStream[] var17 = this.field1384;
|
||||
this.field1385[var6] = null;
|
||||
PcmStream var16 = this.field1410[var6];
|
||||
PcmStream[] var17 = this.field1410;
|
||||
this.field1411[var6] = null;
|
||||
|
||||
for (var17[var6] = null; var16 != null; var16 = var10) {
|
||||
var10 = var16.after;
|
||||
@@ -433,39 +447,39 @@ public class PcmPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.field1375 < 0) {
|
||||
this.field1375 = 0;
|
||||
if (this.field1409 < 0) {
|
||||
this.field1409 = 0;
|
||||
}
|
||||
|
||||
if (this.stream != null) {
|
||||
this.stream.fill(var1, 0, var2);
|
||||
}
|
||||
|
||||
this.timeMs = WorldMapID.currentTimeMillis();
|
||||
this.timeMs = WorldMapIcon_0.currentTimeMillis();
|
||||
}
|
||||
|
||||
@ObfuscatedName("al")
|
||||
@ObfuscatedName("ac")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ldl;II)V",
|
||||
garbageValue = "-919759733"
|
||||
signature = "(Ldn;II)V",
|
||||
garbageValue = "-1216223626"
|
||||
)
|
||||
final void method2432(PcmStream var1, int var2) {
|
||||
final void method2494(PcmStream var1, int var2) {
|
||||
int var3 = var2 >> 5;
|
||||
PcmStream var4 = this.field1385[var3];
|
||||
PcmStream var4 = this.field1411[var3];
|
||||
if (var4 == null) {
|
||||
this.field1384[var3] = var1;
|
||||
this.field1410[var3] = var1;
|
||||
} else {
|
||||
var4.after = var1;
|
||||
}
|
||||
|
||||
this.field1385[var3] = var1;
|
||||
var1.field1454 = var2;
|
||||
this.field1411[var3] = var1;
|
||||
var1.field1478 = var2;
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)V",
|
||||
garbageValue = "1686341177"
|
||||
garbageValue = "-526155431"
|
||||
)
|
||||
@Export("changeWorldSelectSorting")
|
||||
static void changeWorldSelectSorting(int var0, int var1) {
|
||||
@@ -485,6 +499,19 @@ public class PcmPlayer {
|
||||
|
||||
World.World_sortOption1 = var2;
|
||||
World.World_sortOption2 = var3;
|
||||
class192.sortWorlds(class162.World_worlds, 0, class162.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2);
|
||||
Interpreter.sortWorlds(class96.World_worlds, 0, class96.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("ki")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lhn;I)Ljava/lang/String;",
|
||||
garbageValue = "-1826088891"
|
||||
)
|
||||
static String method2542(Widget var0) {
|
||||
if (class83.method2108(WorldMapIcon_0.getWidgetClickMask(var0)) == 0) {
|
||||
return null;
|
||||
} else {
|
||||
return var0.spellActionName != null && var0.spellActionName.trim().length() != 0 ? var0.spellActionName : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user