mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 19:40:18 -07:00
Refactored SignLink classes
This commit is contained in:
parent
8a35c73f76
commit
38800991cb
49 changed files with 741 additions and 748 deletions
|
|
@ -29,7 +29,7 @@ public final class JavaAudioChannel extends AudioChannel {
|
|||
|
||||
@OriginalMember(owner = "client!qa", name = "d", descriptor = "()V")
|
||||
@Override
|
||||
protected final void method3572() {
|
||||
protected final void flush() {
|
||||
if (this.aSourceDataLine1 != null) {
|
||||
this.aSourceDataLine1.close();
|
||||
this.aSourceDataLine1 = null;
|
||||
|
|
@ -38,7 +38,7 @@ public final class JavaAudioChannel extends AudioChannel {
|
|||
|
||||
@OriginalMember(owner = "client!qa", name = "a", descriptor = "(Ljava/awt/Component;)V")
|
||||
@Override
|
||||
public final void method3576(@OriginalArg(0) Component arg0) {
|
||||
public final void init(@OriginalArg(0) Component arg0) {
|
||||
@Pc(1) Info[] local1 = AudioSystem.getMixerInfo();
|
||||
if (local1 != null) {
|
||||
for (@Pc(9) int local9 = 0; local9 < local1.length; local9++) {
|
||||
|
|
@ -51,15 +51,15 @@ public final class JavaAudioChannel extends AudioChannel {
|
|||
}
|
||||
}
|
||||
}
|
||||
this.anAudioFormat1 = new AudioFormat((float) Static44.anInt1404, 16, Static164.aBoolean192 ? 2 : 1, true, false);
|
||||
this.aByteArray64 = new byte[0x100 << (Static164.aBoolean192 ? 2 : 1)];
|
||||
this.anAudioFormat1 = new AudioFormat((float) Static44.sampleRate, 16, AudioChannel.stereo ? 2 : 1, true, false);
|
||||
this.aByteArray64 = new byte[0x100 << (AudioChannel.stereo ? 2 : 1)];
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!qa", name = "a", descriptor = "(I)V")
|
||||
@Override
|
||||
public final void method3562(@OriginalArg(0) int arg0) throws LineUnavailableException {
|
||||
public final void open(@OriginalArg(0) int arg0) throws LineUnavailableException {
|
||||
try {
|
||||
@Pc(20) javax.sound.sampled.DataLine.Info local20 = new javax.sound.sampled.DataLine.Info(SourceDataLine.class, this.anAudioFormat1, arg0 << (Static164.aBoolean192 ? 2 : 1));
|
||||
@Pc(20) javax.sound.sampled.DataLine.Info local20 = new javax.sound.sampled.DataLine.Info(SourceDataLine.class, this.anAudioFormat1, arg0 << (AudioChannel.stereo ? 2 : 1));
|
||||
this.aSourceDataLine1 = (SourceDataLine) AudioSystem.getLine(local20);
|
||||
this.aSourceDataLine1.open();
|
||||
this.aSourceDataLine1.start();
|
||||
|
|
@ -69,21 +69,21 @@ public final class JavaAudioChannel extends AudioChannel {
|
|||
this.aSourceDataLine1 = null;
|
||||
throw local36;
|
||||
} else {
|
||||
this.method3562(Static165.clp2(arg0));
|
||||
this.open(Static165.clp2(arg0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!qa", name = "b", descriptor = "()V")
|
||||
@Override
|
||||
protected final void method3563() throws LineUnavailableException {
|
||||
protected final void close() throws LineUnavailableException {
|
||||
this.aSourceDataLine1.flush();
|
||||
if (!this.aBoolean230) {
|
||||
return;
|
||||
}
|
||||
this.aSourceDataLine1.close();
|
||||
this.aSourceDataLine1 = null;
|
||||
@Pc(34) javax.sound.sampled.DataLine.Info local34 = new javax.sound.sampled.DataLine.Info(SourceDataLine.class, this.anAudioFormat1, this.anInt4645 << (Static164.aBoolean192 ? 2 : 1));
|
||||
@Pc(34) javax.sound.sampled.DataLine.Info local34 = new javax.sound.sampled.DataLine.Info(SourceDataLine.class, this.anAudioFormat1, this.anInt4645 << (AudioChannel.stereo ? 2 : 1));
|
||||
this.aSourceDataLine1 = (SourceDataLine) AudioSystem.getLine(local34);
|
||||
this.aSourceDataLine1.open();
|
||||
this.aSourceDataLine1.start();
|
||||
|
|
@ -91,15 +91,15 @@ public final class JavaAudioChannel extends AudioChannel {
|
|||
|
||||
@OriginalMember(owner = "client!qa", name = "c", descriptor = "()I")
|
||||
@Override
|
||||
protected final int method3569() {
|
||||
return this.anInt4645 - (this.aSourceDataLine1.available() >> (Static164.aBoolean192 ? 2 : 1));
|
||||
protected final int getBufferSize() {
|
||||
return this.anInt4645 - (this.aSourceDataLine1.available() >> (AudioChannel.stereo ? 2 : 1));
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!qa", name = "a", descriptor = "()V")
|
||||
@Override
|
||||
protected final void method3561() {
|
||||
protected final void write() {
|
||||
@Pc(1) short local1 = 256;
|
||||
if (Static164.aBoolean192) {
|
||||
if (AudioChannel.stereo) {
|
||||
local1 = 512;
|
||||
}
|
||||
for (@Pc(9) int local9 = 0; local9 < local1; local9++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue