Package de.lessvoid.nifty.spi.sound

Examples of de.lessvoid.nifty.spi.sound.SoundHandle


   * @return true on success and false when loading the sound failed
   */
  public boolean addSound(final String name, final String filename) {
    log.fine("register sound [" + name + "] for file '" + filename + "'");

    SoundHandle sound = soundDevice.loadSound(this, filename);
    if (sound == null) {
      return false;
    }

    soundLookup.put(name, sound);
View Full Code Here


   * @return true on success and false when loading the music file failed
   */
  public boolean addMusic(final String name, final String filename) {
    log.fine("register music [" + name + "] for file '" + filename + "'");

    SoundHandle music = soundDevice.loadMusic(this, filename);
    if (music == null) {
      return false;
    }

    soundLookup.put(name, music);
View Full Code Here

    if (name == null) {
      log.warning("unknown sound name given [" + name + "]?");
      return null;
    }

    SoundHandle sound = soundLookup.get(name);
    if (sound == null) {
      log.warning("missing sound [" + name + "]");
      return null;
    }
View Full Code Here

    if (name == null) {
      log.warning("unknown music name given [" + name + "]?");
      return null;
    }

    SoundHandle sound = soundLookup.get(name);
    if (sound == null) {
      log.warning("missing sound [" + name + "]");
      return null;
    }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.spi.sound.SoundHandle

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.