Examples of FullVolumeSpatializer


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

                if (listing.isPrivate()) {
        /*
         * Allow caller and callee to hear each other
         */
        AudioGroupSetup audioGroupSetup = new AudioGroupSetup();
        audioGroupSetup.spatializer = new FullVolumeSpatializer();

        audioGroup = vm.createAudioGroup(audioGroupId, audioGroupSetup);
        audioGroup.addPlayer(externalPlayer,
            new AudioGroupPlayerInfo(true,
            AudioGroupPlayerInfo.ChatType.EXCLUSIVE));
View Full Code Here

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

        if (audioGroup == null) {
      AudioGroupSetup setup = new AudioGroupSetup();

      setup.audioGroupListener = this;

      setup.spatializer = new FullVolumeSpatializer();

            setup.spatializer.setAttenuator(Spatializer.DEFAULT_MAXIMUM_VOLUME);

      //System.out.println("Creating audio group for " + name);
View Full Code Here

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

          return getSpatializer((BoundingBox) bounds);
      }

      double radius = ((BoundingSphere) bounds).getRadius();
      System.out.println("Using cell bounds " + radius);
      return new FullVolumeSpatializer(radius);
  }

  if (inConeOfSilence) {
      if (bounds instanceof BoundingSphere) {
          double radius = ((BoundingSphere) bounds).getRadius();

          if (extent > radius) {
        extent = radius;
        System.out.println("Limiting extent to " + extent);
          }    
      }

      audioBounds = new BoundingSphere((float) extent, new Vector3f());

      Spatializer spatializer = new FullVolumeSpatializer(extent);
      spatializer.setAttenuator(volume);
      return spatializer;
  } else {
            audioBounds = new BoundingSphere((float) extent, new Vector3f());
        }
 
  double fullVolumeRadius = fullVolumeAreaPercent / 100. * extent;

  double falloff = .92 + ((50 - this.falloff) * ((1 - .92) / 50));

  if (falloff >= 1) {
      falloff = .999;
  }

  logger.warning("id " + groupId + " cellRadius " + cellRadius
      + " extent " + extent + " use cell bounds " + useCellBounds
      + " fvr " + fullVolumeRadius + " falloff "
      + falloff + " volume " + volume);

        if (distanceAttenuated == true) {
            DefaultSpatializer spatializer = new DefaultSpatializer();

            spatializer.setFullVolumeRadius(fullVolumeRadius);

            spatializer.setZeroVolumeRadius(extent);

      spatializer.setAttenuator(volume);

      FalloffFunction falloffFunction = spatializer.getFalloffFunction();

      falloffFunction.setFalloff(falloff);

      spatializer.setAttenuator(volume);

      return spatializer;
        }

  Spatializer spatializer = new FullVolumeSpatializer(extent);
  spatializer.setAttenuator(volume);
  return spatializer;
    }
View Full Code Here

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

  VoiceChatJoinMessage msg = (VoiceChatJoinMessage) message;

  if (audioGroup == null) {
      AudioGroupSetup setup = new AudioGroupSetup();
      setup.spatializer = new FullVolumeSpatializer();
      setup.spatializer.setAttenuator(Spatializer.DEFAULT_MAXIMUM_VOLUME);
      setup.virtualPlayerListener = this;
      setup.audioGroupListener = this;
      audioGroup = vm.createAudioGroup(group, setup);
  }
View Full Code Here

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

  addTransientMember(group, player, playerInRange);
  AudioGroup ag = AppContext.getManager(VoiceManager.class).getVoiceManagerParameters().livePlayerAudioGroup;

  DefaultSpatializer spatializer = (DefaultSpatializer) ag.getSetup().spatializer;
   
  playerInRange.setPrivateSpatializer(player, new FullVolumeSpatializer(spatializer.getZeroVolumeRadius()));
    }
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.