Class SoundManagerNG
java.lang.Object
games.stendhal.client.sound.manager.SoundManagerNG
- Direct Known Subclasses:
ExtendedSoundManager
New implementation of the sound manager.
- Author:
- silvio
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SoundManagerNG(boolean mute, Collection<DeviceEvaluator.Device> devices, AudioFormat audioFormat)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeAudibleArea(SoundManagerNG.Sound sound, AudibleArea area)
void
changeLayer(SoundManagerNG.Sound sound, int layerLevel)
void
changeVolume(SoundManagerNG.Sound sound, float volume)
void
exit()
gets the list of devicesvoid
openSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming)
void
play(SoundManagerNG.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration)
void
setHearerPosition(float[] position)
protected void
void
stop(SoundManagerNG.Sound sound, Time fadeOutDuration)
void
update()
-
Constructor Details
-
SoundManagerNG
protected SoundManagerNG(boolean mute, Collection<DeviceEvaluator.Device> devices, AudioFormat audioFormat)
-
-
Method Details
-
startSoundsystem
protected final void startSoundsystem() -
openSound
public SoundManagerNG.Sound openSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming) -
setHearerPosition
public void setHearerPosition(float[] position) -
update
public void update() -
play
public void play(SoundManagerNG.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration) -
stop
-
changeVolume
-
changeLayer
-
changeAudibleArea
-
mute
-
getActiveSounds
-
exit
public void exit() -
getDevices
gets the list of devices- Returns:
- devices
-