Package zombie
Class SoundManager
java.lang.Object
zombie.BaseSoundManager
zombie.SoundManager
public class SoundManager extends BaseSoundManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SoundManager.AmbientSoundEffect
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
ambientPieces
float
AmbientVolume
static BaseSoundManager
instance
float
MusicVolume
float
SoundVolume
Fields inherited from class zombie.BaseSoundManager
AllowMusic
-
Constructor Summary
Constructors Constructor Description SoundManager()
-
Method Summary
Modifier and Type Method Description Audio
BlendThenStart(Audio musicTrack, float f, java.lang.String PrefMusic)
void
BlendVolume(Audio audio, float targetVolume)
void
BlendVolume(Audio audio, float targetVolume, float blendSpeedAlpha)
void
CacheSound(java.lang.String file)
void
CheckDoMusic()
void
debugScriptSounds()
void
DoMusic(java.lang.String name, boolean bLoop)
void
FadeOutMusic(java.lang.String name, int milli)
java.util.ArrayList
getAmbientPieces()
float
getAmbientVolume()
java.lang.String
getCurrentMusicLibrary()
java.lang.String
getCurrentMusicName()
float
getMusicPosition()
float
getSoundVolume()
protected boolean
HasMusic(Audio musicTrack)
boolean
isListenerInRange(float x, float y, float range)
boolean
IsMusicPlaying()
boolean
isPlayingMusic()
boolean
isRemastered()
void
pauseSoundAndMusic()
void
playAmbient(java.lang.String name)
void
PlayAsMusic(java.lang.String name, Audio musicTrack, boolean loop, float volume)
void
PlayAsMusic(java.lang.String name, Audio musicTrack, float volume, boolean bloop)
Audio
PlayJukeboxSound(java.lang.String name, boolean loop, float maxGain)
void
playMusic(java.lang.String name)
Audio
PlayMusic(java.lang.String n, java.lang.String name, boolean loop, float maxGain)
void
playMusicNonTriggered(java.lang.String name, float gain)
void
playNightAmbient(java.lang.String choice)
Audio
PlaySound(java.lang.String name, boolean loop, float maxGain)
Audio
PlaySound(java.lang.String name, boolean loop, float maxGain, float pitchVar)
Audio
PlaySoundEvenSilent(java.lang.String name, boolean loop, float maxGain)
Audio
PlaySoundWav(java.lang.String name, boolean loop, float maxGain)
Audio
PlaySoundWav(java.lang.String name, boolean loop, float maxGain, float pitchVar)
Audio
PlaySoundWav(java.lang.String name, int variations, boolean loop, float maxGain)
Audio
PlayWorldSound(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
Audio
PlayWorldSound(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
Audio
PlayWorldSound(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, int choices, boolean ignoreOutside)
Audio
PlayWorldSoundImpl(java.lang.String name, boolean loop, int sx, int sy, int sz, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
Audio
PlayWorldSoundWav(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
Audio
PlayWorldSoundWav(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
void
PlayWorldSoundWav(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, int choices, boolean ignoreOutside)
Audio
PlayWorldSoundWavImpl(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)
Audio
PrepareMusic(java.lang.String name)
void
Purge()
void
registerEmitter(BaseSoundEmitter emitter)
void
resumeSoundAndMusic()
void
setAmbientVolume(float volume)
void
setMusicVolume(float volume)
void
setSoundVolume(float volume)
Audio
Start(Audio musicTrack, float f, java.lang.String PrefMusic)
void
stop()
void
stopMusic(java.lang.String name)
void
StopMusic()
void
StopSound(Audio SoundEffect)
void
Update()
void
update1()
void
update2()
void
update3()
void
update3D()
void
update4()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SoundVolume
public float SoundVolume -
MusicVolume
public float MusicVolume -
AmbientVolume
public float AmbientVolume -
ambientPieces
public java.util.ArrayList ambientPieces -
instance
-
-
Constructor Details
-
SoundManager
public SoundManager()
-
-
Method Details
-
isRemastered
public boolean isRemastered()- Specified by:
isRemastered
in classBaseSoundManager
-
BlendVolume
- Specified by:
BlendVolume
in classBaseSoundManager
-
BlendVolume
- Specified by:
BlendVolume
in classBaseSoundManager
-
BlendThenStart
- Specified by:
BlendThenStart
in classBaseSoundManager
-
FadeOutMusic
public void FadeOutMusic(java.lang.String name, int milli)- Specified by:
FadeOutMusic
in classBaseSoundManager
-
PlayAsMusic
- Specified by:
PlayAsMusic
in classBaseSoundManager
-
IsMusicPlaying
public boolean IsMusicPlaying()- Specified by:
IsMusicPlaying
in classBaseSoundManager
-
isPlayingMusic
public boolean isPlayingMusic()- Specified by:
isPlayingMusic
in classBaseSoundManager
-
getAmbientPieces
public java.util.ArrayList getAmbientPieces()- Specified by:
getAmbientPieces
in classBaseSoundManager
-
pauseSoundAndMusic
public void pauseSoundAndMusic()- Specified by:
pauseSoundAndMusic
in classBaseSoundManager
-
resumeSoundAndMusic
public void resumeSoundAndMusic()- Specified by:
resumeSoundAndMusic
in classBaseSoundManager
-
debugScriptSounds
public void debugScriptSounds()- Specified by:
debugScriptSounds
in classBaseSoundManager
-
registerEmitter
- Specified by:
registerEmitter
in classBaseSoundManager
-
isListenerInRange
public boolean isListenerInRange(float x, float y, float range)- Specified by:
isListenerInRange
in classBaseSoundManager
-
playNightAmbient
public void playNightAmbient(java.lang.String choice)- Specified by:
playNightAmbient
in classBaseSoundManager
-
playMusic
public void playMusic(java.lang.String name)- Specified by:
playMusic
in classBaseSoundManager
-
playAmbient
public void playAmbient(java.lang.String name)- Specified by:
playAmbient
in classBaseSoundManager
-
playMusicNonTriggered
public void playMusicNonTriggered(java.lang.String name, float gain)- Specified by:
playMusicNonTriggered
in classBaseSoundManager
-
stopMusic
public void stopMusic(java.lang.String name)- Specified by:
stopMusic
in classBaseSoundManager
-
CheckDoMusic
public void CheckDoMusic()- Specified by:
CheckDoMusic
in classBaseSoundManager
-
getMusicPosition
public float getMusicPosition()- Specified by:
getMusicPosition
in classBaseSoundManager
-
DoMusic
public void DoMusic(java.lang.String name, boolean bLoop)- Specified by:
DoMusic
in classBaseSoundManager
-
PlayAsMusic
- Specified by:
PlayAsMusic
in classBaseSoundManager
-
PlayMusic
- Specified by:
PlayMusic
in classBaseSoundManager
-
PlaySound
- Specified by:
PlaySound
in classBaseSoundManager
-
PlaySound
- Specified by:
PlaySound
in classBaseSoundManager
-
PlaySoundEvenSilent
- Specified by:
PlaySoundEvenSilent
in classBaseSoundManager
-
PlayJukeboxSound
- Specified by:
PlayJukeboxSound
in classBaseSoundManager
-
PlaySoundWav
- Specified by:
PlaySoundWav
in classBaseSoundManager
-
PlaySoundWav
- Specified by:
PlaySoundWav
in classBaseSoundManager
-
PlaySoundWav
- Specified by:
PlaySoundWav
in classBaseSoundManager
-
update3D
public void update3D()- Specified by:
update3D
in classBaseSoundManager
-
PlayWorldSound
public Audio PlayWorldSound(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSound
in classBaseSoundManager
-
PlayWorldSound
public Audio PlayWorldSound(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSound
in classBaseSoundManager
-
PlayWorldSoundImpl
public Audio PlayWorldSoundImpl(java.lang.String name, boolean loop, int sx, int sy, int sz, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSoundImpl
in classBaseSoundManager
-
PlayWorldSound
public Audio PlayWorldSound(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, int choices, boolean ignoreOutside)- Specified by:
PlayWorldSound
in classBaseSoundManager
-
PlayWorldSoundWav
public Audio PlayWorldSoundWav(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSoundWav
in classBaseSoundManager
-
PlayWorldSoundWav
public Audio PlayWorldSoundWav(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSoundWav
in classBaseSoundManager
-
PlayWorldSoundWavImpl
public Audio PlayWorldSoundWavImpl(java.lang.String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside)- Specified by:
PlayWorldSoundWavImpl
in classBaseSoundManager
-
PlayWorldSoundWav
public void PlayWorldSoundWav(java.lang.String name, IsoGridSquare source, float pitchVar, float radius, float maxGain, int choices, boolean ignoreOutside)- Specified by:
PlayWorldSoundWav
in classBaseSoundManager
-
PrepareMusic
- Specified by:
PrepareMusic
in classBaseSoundManager
-
Start
- Specified by:
Start
in classBaseSoundManager
-
Update
public void Update()- Specified by:
Update
in classBaseSoundManager
-
HasMusic
- Specified by:
HasMusic
in classBaseSoundManager
-
Purge
public void Purge()- Specified by:
Purge
in classBaseSoundManager
-
stop
public void stop()- Specified by:
stop
in classBaseSoundManager
-
StopMusic
public void StopMusic()- Specified by:
StopMusic
in classBaseSoundManager
-
StopSound
- Specified by:
StopSound
in classBaseSoundManager
-
CacheSound
public void CacheSound(java.lang.String file)- Specified by:
CacheSound
in classBaseSoundManager
-
update4
public void update4()- Specified by:
update4
in classBaseSoundManager
-
update2
public void update2()- Specified by:
update2
in classBaseSoundManager
-
update3
public void update3()- Specified by:
update3
in classBaseSoundManager
-
update1
public void update1()- Specified by:
update1
in classBaseSoundManager
-
setSoundVolume
public void setSoundVolume(float volume)- Specified by:
setSoundVolume
in classBaseSoundManager
-
getSoundVolume
public float getSoundVolume()- Specified by:
getSoundVolume
in classBaseSoundManager
-
setAmbientVolume
public void setAmbientVolume(float volume)- Specified by:
setAmbientVolume
in classBaseSoundManager
-
getAmbientVolume
public float getAmbientVolume()- Specified by:
getAmbientVolume
in classBaseSoundManager
-
setMusicVolume
public void setMusicVolume(float volume)- Specified by:
setMusicVolume
in classBaseSoundManager
-
getCurrentMusicName
public java.lang.String getCurrentMusicName()- Specified by:
getCurrentMusicName
in classBaseSoundManager
-
getCurrentMusicLibrary
public java.lang.String getCurrentMusicLibrary()- Specified by:
getCurrentMusicLibrary
in classBaseSoundManager
-