Examples of playMusic()


Examples of com.drakulo.games.ais.core.audio.MusicManager.playMusic()

  public void update(GameContainer container, StateBasedGame game, int arg2)
      throws SlickException {
    MusicManager musicManager = MusicManager.getInstance();
    if (!started || musicManager.getPlayingMusic() == null) {
      started = true;
      musicManager.playMusic(bgMusic);
    }

    Input input = container.getInput();
    for (TextButton tb : buttons) {
      tb.update(input);
View Full Code Here

Examples of com.mojang.minecraft.sound.SoundManager.playMusic()

   private void tick() {
      if(this.soundPlayer != null) {
         SoundPlayer var1 = this.soundPlayer;
         SoundManager var2 = this.sound;
         if(System.currentTimeMillis() > var2.lastMusic && var2.playMusic(var1, "calm")) {
            var2.lastMusic = System.currentTimeMillis() + (long)var2.random.nextInt(900000) + 300000L;
         }
      }

      this.gamemode.spawnMob();
View Full Code Here

Examples of net.minecraft.src.SoundManager.playMusic()

      }
      if (!sndManager.hasMusic(song.getName().toString(), 0) && !soundEffect) {
        sndManager.addCustomMusic(song.getName().toString(), song);
      }
      if (!soundEffect) {
        sndManager.playMusic(song.getName().toString(), 0, x, y, z, volume / 100F, distance);
      } else {
        sndManager.playCustomSoundEffect(song.getName().toString(), x, y, z, volume / 100F, distance);
      }
      return true;
    }
View Full Code Here

Examples of net.minecraft.src.SoundManager.playMusic()

          }
        }
        soundId -= (1 + SoundEffect.getMaxId());
        if (soundId > -1 && soundId <= Music.getMaxId()) {
          Music music = Music.getMusicFromId(soundId);
          sndManager.playMusic(music.getName(), music.getSoundId(), volume / 100F);
        }
    }
  }

  public PacketType getPacketType() {
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.