Class SoundManager
java.lang.Object
games.stendhal.client.sound.manager.SoundManager
Old implementation of the sound manager.
- Author:
- silvio
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeAudibleArea(SoundManager.Sound sound, AudibleArea area)
void
changeLayer(SoundManager.Sound sound, int layerLevel)
void
changeVolume(SoundManager.Sound sound, float volume)
void
exit()
void
openSound(AudioResource AudioResource, SoundFileType fileType)
openSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming)
void
play(SoundManager.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration)
void
setHearerPosition(float[] position)
void
stop(SoundManager.Sound sound, Time fadeOutDuration)
void
update()
-
Field Details
-
ZERO_DURATION
-
-
Constructor Details
-
SoundManager
protected SoundManager()
-
-
Method Details
-
openSound
-
openSound
public SoundManager.Sound openSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming) -
setHearerPosition
public void setHearerPosition(float[] position) -
update
public void update() -
play
public void play(SoundManager.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration) -
stop
-
changeVolume
-
changeLayer
-
changeAudibleArea
-
mute
-
getActiveSounds
-
exit
public void exit()
-