/* */ 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 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 */