|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.client.audio.SoundManager
public class SoundManager
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_92070_a(String par1Str,
float par2,
float par3,
float par4,
float par5,
float par6,
int par7)
|
void |
func_92071_g()
|
boolean |
isEntitySoundPlaying(Entity par1Entity)
Returns true if a sound is currently associated with the given entity, or false otherwise. |
void |
loadSoundSettings(GameSettings par1GameSettings)
Used for loading sound settings from GameSettings |
void |
onSoundOptionsChanged()
Called when one of the sound level options has changed. |
void |
pauseAllSounds()
Pauses all currently playing sounds |
void |
playEntitySound(String par1Str,
Entity par2Entity,
float par3,
float par4,
boolean par5)
If a sound is already playing from the given entity, update the position and velocity of that sound to match the entity. |
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 |
resumeAllSounds()
Resumes playing all currently playing sounds (after pauseAllSounds) |
void |
setEntitySoundPitch(Entity par1Entity,
float par2)
Sets the pitch of the sound associated with the given entity, if one is playing. |
void |
setEntitySoundVolume(Entity par1Entity,
float par2)
Sets the volume of the sound associated with the given entity, if one is playing. |
void |
setListener(EntityLiving par1EntityLiving,
float par2)
Sets the listener of sounds |
void |
stopAllSounds()
Stops all currently playing sounds |
void |
stopEntitySound(Entity par1Entity)
Stops playing the sound associated with the given entity |
void |
updateSoundLocation(Entity par1Entity)
Updates the sound associated with the entity with that entity's position and velocity. |
void |
updateSoundLocation(Entity par1Entity,
Entity par2Entity)
Updates the sound associated with soundEntity with the position and velocity of trackEntity. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static paulscode.sound.SoundSystem sndSystem
public SoundPool soundPoolSounds
public SoundPool soundPoolStreaming
public SoundPool soundPoolMusic
public static int MUSIC_INTERVAL
Constructor Detail |
---|
public SoundManager()
Method Detail |
---|
public void loadSoundSettings(GameSettings par1GameSettings)
public void onSoundOptionsChanged()
public void closeMinecraft()
public void addSound(String par1Str, File par2File)
public void addStreaming(String par1Str, File par2File)
public void addMusic(String par1Str, File par2File)
public void playRandomMusicIfReady()
public void setListener(EntityLiving par1EntityLiving, float par2)
public void stopAllSounds()
public void playStreaming(String par1Str, float par2, float par3, float par4)
public void updateSoundLocation(Entity par1Entity)
public void updateSoundLocation(Entity par1Entity, Entity par2Entity)
public boolean isEntitySoundPlaying(Entity par1Entity)
public void stopEntitySound(Entity par1Entity)
public void setEntitySoundVolume(Entity par1Entity, float par2)
public void setEntitySoundPitch(Entity par1Entity, float par2)
public void playEntitySound(String par1Str, Entity par2Entity, float par3, float par4, boolean par5)
public void playSound(String par1Str, float par2, float par3, float par4, float par5, float par6)
public void playSoundFX(String par1Str, float par2, float par3)
public void pauseAllSounds()
public void resumeAllSounds()
public void func_92071_g()
public void func_92070_a(String par1Str, float par2, float par3, float par4, float par5, float par6, int par7)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |