/* */ package NET.worlds.scape; /* */ /* */ import NET.worlds.console.WebControlImp; /* */ import NET.worlds.network.URL; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class WMPSoundPlayer /* */ extends SoundPlayer /* */ { /* */ protected DirectShow ds; /* */ protected boolean disabled; /* */ /* */ public WMPSoundPlayer(Sound owner) /* */ { /* 28 */ super(owner); /* 29 */ this.ds = new DirectShow(); /* */ } /* */ /* 32 */ static int activeCount = 0; /* 33 */ boolean playing = false; /* */ /* */ public static boolean isActive() /* */ { /* 37 */ return activeCount > 0; /* */ } /* */ /* */ /* */ public boolean open(float volume, float stopDist, boolean atten, boolean pan) /* */ { /* 43 */ return true; /* */ } /* */ /* */ public void start(int repeat) /* */ { /* 48 */ String megaURL = this.owner.getURL().toString(); /* 49 */ megaURL = WebControlImp.processURL(megaURL); /* */ /* 51 */ this.ds.nOpen(URL.make(megaURL).unalias()); /* 52 */ activeCount += 1; /* 53 */ this.ds.nPlay(repeat); /* 54 */ this.playing = true; /* */ } /* */ /* */ /* */ public boolean position(Point3Temp cam, Point3Temp obj, Point3Temp out, Point3Temp up) /* */ { /* 60 */ return true; /* */ } /* */ /* */ public int getState() /* */ { /* 65 */ int nativeState = this.ds.nTick(); /* 66 */ return nativeState == 3 ? 0 : 1; /* */ } /* */ /* */ public void stop() /* */ { /* 71 */ this.ds.nStop(); /* 72 */ activeCount -= 1; /* 73 */ this.playing = false; /* */ } /* */ /* */ public void close() /* */ { /* 78 */ if (this.playing) { /* 79 */ stop(); /* */ } /* */ } /* */ /* */ public boolean setVolume(float v) { /* 84 */ return true; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\WMPSoundPlayer.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */