Class SoundManager
java.lang.Object
games.stendhal.client.sound.manager.SoundManager
Old implementation of the sound manager.
- Author:
- silvio
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeAudibleArea(SoundManager.Sound sound, AudibleArea area) voidchangeLayer(SoundManager.Sound sound, int layerLevel) voidchangeVolume(SoundManager.Sound sound, float volume) voidexit()voidopenSound(AudioResource AudioResource, SoundFileType fileType) openSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming) voidplay(SoundManager.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration) voidsetHearerPosition(float[] position) voidstop(SoundManager.Sound sound, Time fadeOutDuration) voidupdate()
-
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()
-