Examples of Music


Examples of org.newdawn.slick.Music

    LoadingList.setDeferredLoading(true);
   
    new Sound("testdata/cbrown01.wav");
    new Sound("testdata/engine.wav");
    sound = new Sound("testdata/restart.ogg");
    new Music("testdata/testloop.ogg");
    music = new Music("testdata/SMB-X.XM");
   
    new Image("testdata/cursor.png");
    new Image("testdata/cursor.tga");
    new Image("testdata/cursor.png");
    new Image("testdata/cursor.png");

Examples of org.newdawn.slick.Music

  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    music = new Music("testdata/restart.ogg", false);
    stream = new Music("testdata/restart.ogg", false);
   
    music.addListener(this);
    stream.addListener(this);
  }

Examples of org.spout.vanilla.data.Music

  public void setPlaying(boolean playing) {
    // This call is most likely useless, but might be useful once the client
    // changes the displayed model between playing and not-playing
    getBlock().setData(playing ? 1 : 0);
    // Play the effect
    Music music = playing ? this.getMusic() : Music.NONE;
    GeneralEffects.MUSIC_DISC.playGlobal(getPoint(), music);
  }

Examples of org.spoutcraft.api.sound.Music

            // Spout Start
            if (SpoutClient.getInstance().isSpoutEnabled()) {
              EntityPlayer player = SpoutClient.getHandle().thePlayer;
              if (player instanceof EntityClientPlayerMP) {
                if (waitingSound == null) {
                  Music music = Music.getMusicFromName(var1.soundName);
                  if (music != null) {
                    waitingSound = var1;
                    SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketMusicChange(music.getId(), (int)options.musicVolume * 100));
                    return;
                  }
                } else if (allowed) {
                  var1 = waitingSound;
                  waitingSound = null;

Examples of org.spoutcraft.api.sound.Music

            sndManager.playSound(effect.getName(), x, y, z, 0.5F, (distance / 16F), effect.getVariationId(), volume / 100F);
          }
        }
        soundId -= (1 + SoundEffect.getMaxId());
        if (soundId > -1 && soundId <= Music.getMaxId()) {
          Music music = Music.getMusicFromId(soundId);
          sndManager.playMusic(music.getName(), music.getSoundId(), volume / 100F);
        }
    }
  }
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.