mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Make project setup easier with Maven (#411)
* Remove a bunch of .ideas and class files to see if it makes the setup easier * remove some .idea's and imkls * Remove a ton of .class files * [TASK] Switched to maven instead of gradle * [TASK] Added target to gitignore * Remove ignored files * [TASK] Fixed file_server source * [TASK] Fixed client source * [BUGFIX] Main Class * [BUGFIX] Fixed SLF4J * [TASK] Server Libs cleanup * Update setup guide/debug * Maven cli compile instructions * [TASK] Jar building * Update runServer and runFileServer.sh Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
/* Class56_Sub1_Sub1 - Decompiled by JODE
|
||||
* Visit http://jode.sourceforge.net/
|
||||
*/
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
||||
import javax.sound.midi.InvalidMidiDataException;
|
||||
import javax.sound.midi.MidiMessage;
|
||||
import javax.sound.midi.MidiSystem;
|
||||
import javax.sound.midi.Receiver;
|
||||
import javax.sound.midi.Sequence;
|
||||
import javax.sound.midi.Sequencer;
|
||||
import javax.sound.midi.ShortMessage;
|
||||
|
||||
final class Class56_Sub1_Sub1 extends Class56_Sub1 implements Receiver
|
||||
{
|
||||
private static Receiver aReceiver1850 = null;
|
||||
private static Sequencer aSequencer1851 = null;
|
||||
|
||||
final void method827(int i, byte[] is, int i_0_, boolean bool) {
|
||||
if (aSequencer1851 != null) {
|
||||
try {
|
||||
Sequence sequence = MidiSystem.getSequence(new ByteArrayInputStream(is));
|
||||
aSequencer1851.setSequence(sequence);
|
||||
aSequencer1851.setLoopCount(!bool ? 0 : -1);
|
||||
method835(0, i, -1L);
|
||||
aSequencer1851.start();
|
||||
} catch (Exception exception) {
|
||||
/* empty */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
final void method833() {
|
||||
if (aSequencer1851 != null) {
|
||||
aSequencer1851.stop();
|
||||
method838(-1L);
|
||||
}
|
||||
}
|
||||
|
||||
public final synchronized void send(MidiMessage midimessage, long l) {
|
||||
byte[] is = midimessage.getMessage();
|
||||
if (is.length < 3 || !method837(is[0], is[1], is[2], l))
|
||||
aReceiver1850.send(midimessage, l);
|
||||
}
|
||||
|
||||
Class56_Sub1_Sub1() {
|
||||
try {
|
||||
aReceiver1850 = MidiSystem.getReceiver();
|
||||
aSequencer1851 = MidiSystem.getSequencer(false);
|
||||
aSequencer1851.getTransmitter().setReceiver(this);
|
||||
aSequencer1851.open();
|
||||
method838(-1L);
|
||||
} catch (Exception exception) {
|
||||
Game.method790();
|
||||
}
|
||||
}
|
||||
|
||||
final void method828() {
|
||||
if (aSequencer1851 != null) {
|
||||
aSequencer1851.close();
|
||||
aSequencer1851 = null;
|
||||
}
|
||||
if (aReceiver1850 != null) {
|
||||
aReceiver1850.close();
|
||||
aReceiver1850 = null;
|
||||
}
|
||||
}
|
||||
|
||||
public final void close() {
|
||||
/* empty */
|
||||
}
|
||||
|
||||
final void method831(int i) {
|
||||
if (aSequencer1851 != null) {
|
||||
method840(i, -1L);
|
||||
}
|
||||
}
|
||||
|
||||
final synchronized void method830(int i, int i_2_) {
|
||||
if (aSequencer1851 != null) {
|
||||
method835(i_2_, i, -1L);
|
||||
}
|
||||
}
|
||||
|
||||
final void method836(int i, int i_5_, int i_6_, long l) {
|
||||
try {
|
||||
ShortMessage shortmessage = new ShortMessage();
|
||||
shortmessage.setMessage(i, i_5_, i_6_);
|
||||
aReceiver1850.send(shortmessage, l);
|
||||
} catch (InvalidMidiDataException invalidmididataexception) {
|
||||
/* empty */
|
||||
}
|
||||
}
|
||||
|
||||
final void method832(int i) {
|
||||
if (i > -90)
|
||||
method833();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user