project: update from 184 to 184 (#1675)
* 184 * checkstyle * project: fix exports.
This commit is contained in:
@@ -1,128 +1,128 @@
|
||||
import javax.sound.sampled.AudioFormat;
|
||||
import javax.sound.sampled.AudioSystem;
|
||||
import javax.sound.sampled.LineUnavailableException;
|
||||
import javax.sound.sampled.SourceDataLine;
|
||||
import javax.sound.sampled.DataLine.Info;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("af")
|
||||
@Implements("DevicePcmPlayer")
|
||||
public class DevicePcmPlayer extends PcmPlayer {
|
||||
@ObfuscatedName("z")
|
||||
@Export("format")
|
||||
AudioFormat format;
|
||||
@ObfuscatedName("n")
|
||||
@Export("line")
|
||||
SourceDataLine line;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -66296385
|
||||
)
|
||||
@Export("capacity2")
|
||||
int capacity2;
|
||||
@ObfuscatedName("u")
|
||||
@Export("byteSamples")
|
||||
byte[] byteSamples;
|
||||
|
||||
DevicePcmPlayer() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "8"
|
||||
)
|
||||
@Export("init")
|
||||
protected void init() {
|
||||
this.format = new AudioFormat((float)UrlRequest.PcmPlayer_sampleRate, 16, PcmPlayer.PcmPlayer_stereo ? 2 : 1, true, false);
|
||||
this.byteSamples = new byte[256 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)];
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IS)V",
|
||||
garbageValue = "2148"
|
||||
)
|
||||
@Export("open")
|
||||
protected void open(int var1) throws LineUnavailableException {
|
||||
try {
|
||||
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
this.line = (SourceDataLine)AudioSystem.getLine(var2);
|
||||
this.line.open();
|
||||
this.line.start();
|
||||
this.capacity2 = var1;
|
||||
} catch (LineUnavailableException var5) {
|
||||
int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765);
|
||||
var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459);
|
||||
var4 = (var4 >>> 4) + var4 & 252645135;
|
||||
var4 += var4 >>> 8;
|
||||
var4 += var4 >>> 16;
|
||||
int var3 = var4 & 255;
|
||||
if (var3 != 1) {
|
||||
this.open(Timer.method4923(var1));
|
||||
} else {
|
||||
this.line = null;
|
||||
throw var5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("position")
|
||||
protected int position() {
|
||||
return this.capacity2 - (this.line.available() >> (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@Export("write")
|
||||
protected void write() {
|
||||
int var1 = 256;
|
||||
if (PcmPlayer.PcmPlayer_stereo) {
|
||||
var1 <<= 1;
|
||||
}
|
||||
|
||||
for (int var2 = 0; var2 < var1; ++var2) {
|
||||
int var3 = super.samples[var2];
|
||||
if ((var3 + 8388608 & -16777216) != 0) {
|
||||
var3 = 8388607 ^ var3 >> 31;
|
||||
}
|
||||
|
||||
this.byteSamples[var2 * 2] = (byte)(var3 >> 8);
|
||||
this.byteSamples[var2 * 2 + 1] = (byte)(var3 >> 16);
|
||||
}
|
||||
|
||||
this.line.write(this.byteSamples, 0, var1 << 1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "90832052"
|
||||
)
|
||||
@Export("close")
|
||||
protected void close() {
|
||||
if (this.line != null) {
|
||||
this.line.close();
|
||||
this.line = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "1875138754"
|
||||
)
|
||||
@Export("discard")
|
||||
protected void discard() {
|
||||
this.line.flush();
|
||||
}
|
||||
}
|
||||
import javax.sound.sampled.AudioFormat;
|
||||
import javax.sound.sampled.AudioSystem;
|
||||
import javax.sound.sampled.LineUnavailableException;
|
||||
import javax.sound.sampled.SourceDataLine;
|
||||
import javax.sound.sampled.DataLine.Info;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("af")
|
||||
@Implements("DevicePcmPlayer")
|
||||
public class DevicePcmPlayer extends PcmPlayer {
|
||||
@ObfuscatedName("z")
|
||||
@Export("format")
|
||||
AudioFormat format;
|
||||
@ObfuscatedName("n")
|
||||
@Export("line")
|
||||
SourceDataLine line;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -66296385
|
||||
)
|
||||
@Export("capacity2")
|
||||
int capacity2;
|
||||
@ObfuscatedName("u")
|
||||
@Export("byteSamples")
|
||||
byte[] byteSamples;
|
||||
|
||||
DevicePcmPlayer() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "8"
|
||||
)
|
||||
@Export("init")
|
||||
protected void init() {
|
||||
this.format = new AudioFormat((float)UrlRequest.PcmPlayer_sampleRate, 16, PcmPlayer.PcmPlayer_stereo ? 2 : 1, true, false);
|
||||
this.byteSamples = new byte[256 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)];
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IS)V",
|
||||
garbageValue = "2148"
|
||||
)
|
||||
@Export("open")
|
||||
protected void open(int var1) throws LineUnavailableException {
|
||||
try {
|
||||
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
this.line = (SourceDataLine)AudioSystem.getLine(var2);
|
||||
this.line.open();
|
||||
this.line.start();
|
||||
this.capacity2 = var1;
|
||||
} catch (LineUnavailableException var5) {
|
||||
int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765);
|
||||
var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459);
|
||||
var4 = (var4 >>> 4) + var4 & 252645135;
|
||||
var4 += var4 >>> 8;
|
||||
var4 += var4 >>> 16;
|
||||
int var3 = var4 & 255;
|
||||
if (var3 != 1) {
|
||||
this.open(Timer.method4935(var1));
|
||||
} else {
|
||||
this.line = null;
|
||||
throw var5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("position")
|
||||
protected int position() {
|
||||
return this.capacity2 - (this.line.available() >> (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@Export("write")
|
||||
protected void write() {
|
||||
int var1 = 256;
|
||||
if (PcmPlayer.PcmPlayer_stereo) {
|
||||
var1 <<= 1;
|
||||
}
|
||||
|
||||
for (int var2 = 0; var2 < var1; ++var2) {
|
||||
int var3 = super.samples[var2];
|
||||
if ((var3 + 8388608 & -16777216) != 0) {
|
||||
var3 = 8388607 ^ var3 >> 31;
|
||||
}
|
||||
|
||||
this.byteSamples[var2 * 2] = (byte)(var3 >> 8);
|
||||
this.byteSamples[var2 * 2 + 1] = (byte)(var3 >> 16);
|
||||
}
|
||||
|
||||
this.line.write(this.byteSamples, 0, var1 << 1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "90832052"
|
||||
)
|
||||
@Export("close")
|
||||
protected void close() {
|
||||
if (this.line != null) {
|
||||
this.line.close();
|
||||
this.line = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "1875138754"
|
||||
)
|
||||
@Export("discard")
|
||||
protected void discard() {
|
||||
this.line.flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user