Examples of VirtualPlayer


Examples of com.sun.mpk20.voicelib.app.VirtualPlayer

  logger.warning("virtualPlayerAdded:  " + vp + " Center " + center);
    }

    public void virtualPlayersRemoved(VirtualPlayer[] virtualPlayers) {
  for (int i = 0; i < virtualPlayers.length; i++) {
      VirtualPlayer vp = virtualPlayers[i];

            ManagedOrbMap orbMap = (ManagedOrbMap) AppContext.getDataManager().getBinding(ORB_MAP_NAME);

      ManagedReference<Orb> orbRef = orbMap.get(vp.getId());

      logger.info("removing " + vp);

      if (orbRef == null) {
    logger.warning("No orb for " + vp);
    return;
      }

      Orb orb = orbRef.get();

      if (orb.addToUseCount(-1) == 0) {
    logger.fine("Removing " + vp.getId() + " from orbs");
    orbMap.remove(vp.getId());

    vp.realPlayer.setPrivateMixes(true);
          orb.done();
      }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.