summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/MCIThread.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/MCIThread.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/MCIThread.java')
-rw-r--r--NET/worlds/scape/MCIThread.java259
1 files changed, 259 insertions, 0 deletions
diff --git a/NET/worlds/scape/MCIThread.java b/NET/worlds/scape/MCIThread.java
new file mode 100644
index 0000000..9e3334a
--- /dev/null
+++ b/NET/worlds/scape/MCIThread.java
@@ -0,0 +1,259 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import NET.worlds.console.Main;
+/* */ import NET.worlds.console.MainCallback;
+/* */ import NET.worlds.console.MainTerminalCallback;
+/* */ import java.util.Vector;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ class MCIThread
+/* */ implements MainCallback, MainTerminalCallback
+/* */ {
+/* */ public MCIThread()
+/* */ {
+/* 217 */ Main.register(this);
+/* */ }
+/* */
+/* 220 */ private Vector<MCISoundCommand> queue = new Vector();
+/* */ private int frameNum;
+/* */
+/* */ public synchronized void pushCommand(MCISoundCommand c) {
+/* 224 */ this.queue.addElement(c);
+/* 225 */ c.onQueue(true);
+/* */
+/* */
+/* */
+/* 229 */ c.frameNum = (this.frameNum + 2);
+/* */ }
+/* */
+/* */ public synchronized void mainCallback() {
+/* 233 */ this.frameNum += 1;
+/* */
+/* 235 */ while (this.queue.size() > 0) {
+/* 236 */ MCISoundCommand command = (MCISoundCommand)this.queue.elementAt(0);
+/* */
+/* 238 */ if (command.frameNum > this.frameNum) {
+/* 239 */ return;
+/* */ }
+/* 241 */ command.onQueue(false);
+/* 242 */ this.queue.removeElementAt(0);
+/* */
+/* 244 */ command.run();
+/* */ }
+/* */ }
+/* */
+/* */ public synchronized void terminalCallback() {
+/* 249 */ MCISoundPlayer.shutdown();
+/* 250 */ ASFSoundPlayer.shutdown();
+/* 251 */ Main.unregister(this);
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\MCIThread.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file