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
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSoundManagerNG(boolean mute, Collection<DeviceEvaluator.Device> devices, AudioFormat audioFormat) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeAudibleArea(SoundManagerNG.Sound sound, AudibleArea area) voidchangeLayer(SoundManagerNG.Sound sound, int layerLevel) voidchangeVolume(SoundManagerNG.Sound sound, float volume) voidexit()gets the list of devicesvoidopenSound(AudioResource AudioResource, SoundFileType fileType, int numSamplesPerChunk, boolean enableStreaming) voidplay(SoundManagerNG.Sound sound, float volume, int layerLevel, AudibleArea area, boolean autoRepeat, Time fadeInDuration) voidsetHearerPosition(float[] position) protected final voidvoidstop(SoundManagerNG.Sound sound, Time fadeOutDuration) voidupdate()
-
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
-