rev187
This commit is contained in:
@@ -9,54 +9,54 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("as")
|
||||
@ObfuscatedName("ai")
|
||||
@Implements("DevicePcmPlayer")
|
||||
public class DevicePcmPlayer extends PcmPlayer {
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("f")
|
||||
@Export("format")
|
||||
AudioFormat format;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("i")
|
||||
@Export("line")
|
||||
SourceDataLine line;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 447959355
|
||||
intValue = 828002731
|
||||
)
|
||||
@Export("capacity2")
|
||||
int capacity2;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("w")
|
||||
@Export("byteSamples")
|
||||
byte[] byteSamples;
|
||||
|
||||
DevicePcmPlayer() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "347893346"
|
||||
signature = "(B)V",
|
||||
garbageValue = "15"
|
||||
)
|
||||
@Export("init")
|
||||
protected void init() {
|
||||
this.format = new AudioFormat((float)Messages.PcmPlayer_sampleRate, 16, PcmPlayer.PcmPlayer_stereo ? 2 : 1, true, false);
|
||||
this.byteSamples = new byte[256 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)];
|
||||
this.format = new AudioFormat((float)(DirectByteArrayCopier.field2490 * -168449264), 16, SoundCache.PcmPlayer_stereo ? 2 : 1, true, false);
|
||||
this.byteSamples = new byte[256 << (SoundCache.PcmPlayer_stereo ? 2 : 1)];
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IB)V",
|
||||
garbageValue = "25"
|
||||
signature = "(II)V",
|
||||
garbageValue = "797185937"
|
||||
)
|
||||
@Export("open")
|
||||
protected void open(int var1) throws LineUnavailableException {
|
||||
try {
|
||||
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (SoundCache.PcmPlayer_stereo ? 2 : 1));
|
||||
this.line = (SourceDataLine)AudioSystem.getLine(var2);
|
||||
this.line.open();
|
||||
this.line.start();
|
||||
this.capacity2 = var1;
|
||||
} catch (LineUnavailableException var5) {
|
||||
if (BoundaryObject.method3312(var1) != 1) {
|
||||
if (ScriptFrame.method1109(var1) != 1) {
|
||||
int var4 = var1 - 1;
|
||||
var4 |= var4 >>> 1;
|
||||
var4 |= var4 >>> 2;
|
||||
@@ -72,21 +72,21 @@ public class DevicePcmPlayer extends PcmPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "80"
|
||||
signature = "(I)I",
|
||||
garbageValue = "2013132005"
|
||||
)
|
||||
@Export("position")
|
||||
protected int position() {
|
||||
return this.capacity2 - (this.line.available() >> (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
return this.capacity2 - (this.line.available() >> (SoundCache.PcmPlayer_stereo ? 2 : 1));
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("w")
|
||||
@Export("write")
|
||||
protected void write() {
|
||||
int var1 = 256;
|
||||
if (PcmPlayer.PcmPlayer_stereo) {
|
||||
if (SoundCache.PcmPlayer_stereo) {
|
||||
var1 <<= 1;
|
||||
}
|
||||
|
||||
@@ -103,10 +103,10 @@ public class DevicePcmPlayer extends PcmPlayer {
|
||||
this.line.write(this.byteSamples, 0, var1 << 1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1441503616"
|
||||
signature = "(S)V",
|
||||
garbageValue = "390"
|
||||
)
|
||||
@Export("close")
|
||||
protected void close() {
|
||||
@@ -117,10 +117,10 @@ public class DevicePcmPlayer extends PcmPlayer {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "45"
|
||||
signature = "(I)V",
|
||||
garbageValue = "1127195595"
|
||||
)
|
||||
@Export("discard")
|
||||
protected void discard() {
|
||||
|
||||
Reference in New Issue
Block a user