Examples of Sound


Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @param source the sound object
   */
  public SoundLoadStateChangeEvent(Object source) {
    super(source);
    Sound sound = (Sound) source;
    loadState = sound.getLoadState();
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @return a string representation of this event object
   */
  @Override
  public String toString() {
    Sound sound = (Sound) getSource();
    return StringUtil.getSimpleName(SoundLoadStateChangeEvent.class) + ": " + sound + "; state="
        + loadStateToString(loadState);
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @return the string representation of this event
   */
  @Override
  public String toString() {
    Sound sound = (Sound) getSource();
    return StringUtil.getSimpleName(PlaybackCompleteEvent.class) + ": " + sound;
  }
View Full Code Here

Examples of com.badlogic.gdx.audio.Sound

        }
    }

    @Override
    public void playSound(String name, boolean loop) {
        Sound s = m_soundList.get(name);
        if (loop) {
            s.loop(m_volumeFX);
        } else {
            s.play(m_volumeFX);

        }
    }
View Full Code Here

Examples of com.badlogic.gdx.audio.Sound

                        m_musicList.put(name, m);
                        break;
                    }
                    case "sound": {
                        FileHandle f = new FileHandle(new File(entityPath));
                        Sound s = Gdx.audio.newSound(f);
                        m_soundList.put(name, s);
                        break;
                    }
                    case "playlist":
                        m_playlistList.put(name, entityPath);
View Full Code Here

Examples of com.badlogic.gdx.audio.Sound

   * Add sound.
   *
   */
  private void add(SoundDefinition definition)
  {
    Sound sound = null;

    // Load sound
    sound = Gdx.audio.newSound(Gdx.files.internal(definition.getPath()));

    String name = definition.getName();
View Full Code Here

Examples of javax.media.j3d.Sound

/*     */   }
/*     */
/*     */   public void readObject(DataInput in) throws IOException {
/*  87 */     super.readObject(in);
/*     */
/*  89 */     Sound sound = (Sound)this.node;
/*     */
/*  91 */     sound.setContinuousEnable(in.readBoolean());
/*  92 */     sound.setEnable(in.readBoolean());
/*  93 */     sound.setInitialGain(in.readFloat());
/*  94 */     sound.setLoop(in.readInt());
/*  95 */     sound.setPriority(in.readFloat());
/*  96 */     sound.setReleaseEnable(in.readBoolean());
/*  97 */     this.boundingLeaf = in.readInt();
/*  98 */     sound.setSchedulingBounds(this.control.readBounds(in));
/*  99 */     this.mediaContainer = in.readInt();
/* 100 */     sound.setMute(in.readBoolean());
/* 101 */     sound.setPause(in.readBoolean());
/* 102 */     sound.setRateScaleFactor(in.readFloat());
/*     */   }
View Full Code Here

Examples of org.bukkit.Sound

      org.bukkit.Effect effect = ParseUtil.parseEnum(org.bukkit.Effect.class, name, null);
      if (effect != null) {
        play(location, effect, 0);
        continue;
      }
      Sound sound = ParseUtil.parseEnum(Sound.class, name, null);
      if (sound != null) {
        location.getWorld().playSound(location, sound, volume, pitch);
        continue;
      }
    }
View Full Code Here

Examples of org.bukkit.Sound

        // get pitch and volume from the midi message
        float pitch = (float) ToneUtil.midiToPitch(message);
        float volume = VOLUME_RANGE * (message.getData2() / 127.0f);

        Sound instrument = Sound.NOTE_PIANO;
        if (patch != null) instrument = MidiUtil.patchToInstrument(patch);

        if (location != null) {
            location.getWorld().playSound(location, instrument, volume, pitch);
        }
View Full Code Here

Examples of org.bukkit.Sound

                        show = nshow;
                        return;
                    } else if (line.startsWith("sound ")) {

                        String[] bits = RegexUtil.SPACE_PATTERN.split(line.replace("sound ", ""));
                        Sound sound = Sound.valueOf(bits[0]);
                        Location sloc = location.clone();
                        float volume = 1.0f,pitch = 1.0f;
                        if(bits.length > 1) {
                            double x,y,z;
                            String[] args = RegexUtil.COMMA_PATTERN.split(bits[1]);
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.