net.minecraft.src
Class SoundManager

java.lang.Object
  extended by net.minecraft.src.SoundManager

public class SoundManager
extends Object


Field Summary
static int MUSIC_INTERVAL
           
static paulscode.sound.SoundSystem sndSystem
          A reference to the sound system.
 SoundPool soundPoolMusic
          Sound pool containing music.
 SoundPool soundPoolSounds
          Sound pool containing sounds.
 SoundPool soundPoolStreaming
          Sound pool containing streaming audio.
 
Constructor Summary
SoundManager()
           
 
Method Summary
 void addMusic(String par1Str, File par2File)
          Adds an audio file to the music SoundPool.
 void addSound(String par1Str, File par2File)
          Adds a sounds with the name from the file.
 void addStreaming(String par1Str, File par2File)
          Adds an audio file to the streaming SoundPool.
 void closeMinecraft()
          Called when Minecraft is closing down.
 void func_82460_a(Entity par1Entity)
           
 void func_82461_f()
           
 void func_82462_a(Entity par1Entity, Entity par2Entity)
           
 void func_82463_b(Entity par1Entity, float par2)
           
 void func_82464_d()
           
 boolean func_82465_b(Entity par1Entity)
           
 void func_82466_e()
           
 void func_82467_a(String par1Str, Entity par2Entity, float par3, float par4, boolean par5)
           
 void func_82468_a(Entity par1Entity, float par2)
           
 void func_82469_c(Entity par1Entity)
           
 void loadSoundSettings(GameSettings par1GameSettings)
          Used for loading sound settings from GameSettings
 void onSoundOptionsChanged()
          Called when one of the sound level options has changed.
 void playRandomMusicIfReady()
          If its time to play new music it starts it up.
 void playSound(String par1Str, float par2, float par3, float par4, float par5, float par6)
          Plays a sound.
 void playSoundFX(String par1Str, float par2, float par3)
          Plays a sound effect with the volume and pitch of the parameters passed.
 void playStreaming(String par1Str, float par2, float par3, float par4)
           
 void setListener(EntityLiving par1EntityLiving, float par2)
          Sets the listener of sounds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sndSystem

public static paulscode.sound.SoundSystem sndSystem
A reference to the sound system.


soundPoolSounds

public SoundPool soundPoolSounds
Sound pool containing sounds.


soundPoolStreaming

public SoundPool soundPoolStreaming
Sound pool containing streaming audio.


soundPoolMusic

public SoundPool soundPoolMusic
Sound pool containing music.


MUSIC_INTERVAL

public static int MUSIC_INTERVAL
Constructor Detail

SoundManager

public SoundManager()
Method Detail

loadSoundSettings

public void loadSoundSettings(GameSettings par1GameSettings)
Used for loading sound settings from GameSettings


onSoundOptionsChanged

public void onSoundOptionsChanged()
Called when one of the sound level options has changed.


closeMinecraft

public void closeMinecraft()
Called when Minecraft is closing down.


addSound

public void addSound(String par1Str,
                     File par2File)
Adds a sounds with the name from the file. Args: name, file


addStreaming

public void addStreaming(String par1Str,
                         File par2File)
Adds an audio file to the streaming SoundPool.


addMusic

public void addMusic(String par1Str,
                     File par2File)
Adds an audio file to the music SoundPool.


playRandomMusicIfReady

public void playRandomMusicIfReady()
If its time to play new music it starts it up.


setListener

public void setListener(EntityLiving par1EntityLiving,
                        float par2)
Sets the listener of sounds


func_82464_d

public void func_82464_d()

playStreaming

public void playStreaming(String par1Str,
                          float par2,
                          float par3,
                          float par4)

func_82460_a

public void func_82460_a(Entity par1Entity)

func_82462_a

public void func_82462_a(Entity par1Entity,
                         Entity par2Entity)

func_82465_b

public boolean func_82465_b(Entity par1Entity)

func_82469_c

public void func_82469_c(Entity par1Entity)

func_82468_a

public void func_82468_a(Entity par1Entity,
                         float par2)

func_82463_b

public void func_82463_b(Entity par1Entity,
                         float par2)

func_82467_a

public void func_82467_a(String par1Str,
                         Entity par2Entity,
                         float par3,
                         float par4,
                         boolean par5)

playSound

public void playSound(String par1Str,
                      float par2,
                      float par3,
                      float par4,
                      float par5,
                      float par6)
Plays a sound. Args: soundName, x, y, z, volume, pitch


playSoundFX

public void playSoundFX(String par1Str,
                        float par2,
                        float par3)
Plays a sound effect with the volume and pitch of the parameters passed. The sound isn't affected by position of the player (full volume and center balanced)


func_82466_e

public void func_82466_e()

func_82461_f

public void func_82461_f()