Package games.stendhal.client.sound.manager

Examples of games.stendhal.client.sound.manager.AudibleCircleArea


  /**
   * plays the sound
   */
  private void play() {
    AudibleCircleArea area = new AudibleCircleArea(Algebra.vecf((float) x, (float) y), radius / 2.0f, radius);
    boolean cloneSound = group != ClientSingletonRepository.getSound().getGroup(SoundLayer.BACKGROUND_MUSIC.groupName);
    sound = group.play(soundName, volume, 0, area, fadingDuration, true, cloneSound);
  }
View Full Code Here


      radius = event.getInt("radius");
    }

    SoundGroup group = ClientSingletonRepository.getSound().getGroup(layer.groupName);
    String soundName = event.get("sound");
    AudibleCircleArea area = new AudibleCircleArea(Algebra.vecf((float)entity.getX(), (float)entity.getY()), radius/4.0f, radius);
    group.loadSound(soundName, "audio:/" + soundName + ".ogg", Type.OGG, false);
    group.play(soundName, volume, 0, area, null, false, true);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.sound.manager.AudibleCircleArea

Copyright © 2018 www.massapicom. 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.