YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.audio.SoundManager Class Reference

Public Member Functions

 SoundManager ()
 
void loadSoundSettings (GameSettings par1GameSettings)
 
void onSoundOptionsChanged ()
 
void closeMinecraft ()
 
void addSound (String par1Str, File par2File)
 
void addStreaming (String par1Str, File par2File)
 
void addMusic (String par1Str, File par2File)
 
void playRandomMusicIfReady ()
 
void setListener (EntityLiving par1EntityLiving, float par2)
 
void stopAllSounds ()
 
void playStreaming (String par1Str, float par2, float par3, float par4)
 
void updateSoundLocation (Entity par1Entity)
 
void updateSoundLocation (Entity par1Entity, Entity par2Entity)
 
boolean isEntitySoundPlaying (Entity par1Entity)
 
void stopEntitySound (Entity par1Entity)
 
void setEntitySoundVolume (Entity par1Entity, float par2)
 
void setEntitySoundPitch (Entity par1Entity, float par2)
 
void playEntitySound (String par1Str, Entity par2Entity, float par3, float par4, boolean par5)
 
void playSound (String par1Str, float par2, float par3, float par4, float par5, float par6)
 
void playSoundFX (String par1Str, float par2, float par3)
 
void pauseAllSounds ()
 
void resumeAllSounds ()
 
void func_92071_g ()
 
void func_92070_a (String par1Str, float par2, float par3, float par4, float par5, float par6, int par7)
 

Public Attributes

SoundPool soundPoolSounds = new SoundPool()
 
SoundPool soundPoolStreaming = new SoundPool()
 
SoundPool soundPoolMusic = new SoundPool()
 

Static Public Attributes

static SoundSystem sndSystem
 
static int MUSIC_INTERVAL = 12000
 

Constructor & Destructor Documentation

net.minecraft.client.audio.SoundManager.SoundManager ( )

Member Function Documentation

void net.minecraft.client.audio.SoundManager.addMusic ( String  par1Str,
File  par2File 
)

Adds an audio file to the music SoundPool.

void net.minecraft.client.audio.SoundManager.addSound ( String  par1Str,
File  par2File 
)

Adds a sounds with the name from the file. Args: name, file

void net.minecraft.client.audio.SoundManager.addStreaming ( String  par1Str,
File  par2File 
)

Adds an audio file to the streaming SoundPool.

void net.minecraft.client.audio.SoundManager.closeMinecraft ( )

Called when Minecraft is closing down.

void net.minecraft.client.audio.SoundManager.func_92070_a ( String  par1Str,
float  par2,
float  par3,
float  par4,
float  par5,
float  par6,
int  par7 
)
void net.minecraft.client.audio.SoundManager.func_92071_g ( )
boolean net.minecraft.client.audio.SoundManager.isEntitySoundPlaying ( Entity  par1Entity)

Returns true if a sound is currently associated with the given entity, or false otherwise.

void net.minecraft.client.audio.SoundManager.loadSoundSettings ( GameSettings  par1GameSettings)

Used for loading sound settings from GameSettings

void net.minecraft.client.audio.SoundManager.onSoundOptionsChanged ( )

Called when one of the sound level options has changed.

void net.minecraft.client.audio.SoundManager.pauseAllSounds ( )

Pauses all currently playing sounds

void net.minecraft.client.audio.SoundManager.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. Otherwise, start playing a sound from that entity. Setting the last flag to true will prevent other sounds from overriding this one. Args: The sound name, the entity, the volume, the pitch, priority

void net.minecraft.client.audio.SoundManager.playRandomMusicIfReady ( )

If its time to play new music it starts it up.

void net.minecraft.client.audio.SoundManager.playSound ( String  par1Str,
float  par2,
float  par3,
float  par4,
float  par5,
float  par6 
)

Plays a sound. Args: soundName, x, y, z, volume, pitch

void net.minecraft.client.audio.SoundManager.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)

void net.minecraft.client.audio.SoundManager.playStreaming ( String  par1Str,
float  par2,
float  par3,
float  par4 
)
void net.minecraft.client.audio.SoundManager.resumeAllSounds ( )

Resumes playing all currently playing sounds (after pauseAllSounds)

void net.minecraft.client.audio.SoundManager.setEntitySoundPitch ( Entity  par1Entity,
float  par2 
)

Sets the pitch of the sound associated with the given entity, if one is playing. Args: the entity, the pitch

void net.minecraft.client.audio.SoundManager.setEntitySoundVolume ( Entity  par1Entity,
float  par2 
)

Sets the volume of the sound associated with the given entity, if one is playing. The volume is scaled by the global sound volume. Args: the entity, the volume (from 0 to 1)

void net.minecraft.client.audio.SoundManager.setListener ( EntityLiving  par1EntityLiving,
float  par2 
)

Sets the listener of sounds

void net.minecraft.client.audio.SoundManager.stopAllSounds ( )

Stops all currently playing sounds

void net.minecraft.client.audio.SoundManager.stopEntitySound ( Entity  par1Entity)

Stops playing the sound associated with the given entity

void net.minecraft.client.audio.SoundManager.updateSoundLocation ( Entity  par1Entity)

Updates the sound associated with the entity with that entity's position and velocity. Args: the entity

void net.minecraft.client.audio.SoundManager.updateSoundLocation ( Entity  par1Entity,
Entity  par2Entity 
)

Updates the sound associated with soundEntity with the position and velocity of trackEntity. Args: soundEntity, trackEntity

Member Data Documentation

int net.minecraft.client.audio.SoundManager.MUSIC_INTERVAL = 12000
static
SoundSystem net.minecraft.client.audio.SoundManager.sndSystem
static

A reference to the sound system.

SoundPool net.minecraft.client.audio.SoundManager.soundPoolMusic = new SoundPool()

Sound pool containing music.

SoundPool net.minecraft.client.audio.SoundManager.soundPoolSounds = new SoundPool()

Sound pool containing sounds.

SoundPool net.minecraft.client.audio.SoundManager.soundPoolStreaming = new SoundPool()

Sound pool containing streaming audio.


The documentation for this class was generated from the following file: