Class ExtendedSoundManager.Group
java.lang.Object
games.stendhal.client.sound.sound.ExtendedSoundManager.Group
- All Implemented Interfaces:
SoundGroup
- Enclosing class:
- ExtendedSoundManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeVolume(float volume)
changes the volumnevoid
enables streaming of the music data for this group.float
gets the current volumneboolean
loadSound(String name, String filename, SoundFileType fileType, boolean enableStreaming)
Loads a soundplay(String soundName, float volume, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)
plays a soundplay(String soundName, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)
plays a sound
-
Constructor Details
-
Group
public Group()
-
-
Method Details
-
loadSound
public boolean loadSound(String name, String filename, SoundFileType fileType, boolean enableStreaming)Description copied from interface:SoundGroup
Loads a sound- Specified by:
loadSound
in interfaceSoundGroup
- Parameters:
name
- name of soundfilename
- "audio:/"fileType
- Type.OGGenableStreaming
- should streaming be enabled?- Returns:
- true, if the sound could be loaded; false otherwise.
-
getVolume
public float getVolume()Description copied from interface:SoundGroup
gets the current volumne- Specified by:
getVolume
in interfaceSoundGroup
- Returns:
- volumne
-
changeVolume
public void changeVolume(float volume)Description copied from interface:SoundGroup
changes the volumne- Specified by:
changeVolume
in interfaceSoundGroup
- Parameters:
volume
- volume
-
enableStreaming
public void enableStreaming()enables streaming of the music data for this group.- Specified by:
enableStreaming
in interfaceSoundGroup
-
play
public SoundManagerNG.Sound play(String soundName, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)Description copied from interface:SoundGroup
plays a sound- Specified by:
play
in interfaceSoundGroup
- Parameters:
soundName
- name of soundlayerLevel
- on which layer should the sound be playedarea
- in which area is the sound hearable?fadeInDuration
- time the sound will fade inautoRepeat
- should the sound be played in a loop?clone
- should the sound be cloned for manipulation?- Returns:
- a handle to the sound, so that it can be cancled in case of looped sounds
-
play
public SoundManagerNG.Sound play(String soundName, float volume, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)Description copied from interface:SoundGroup
plays a sound- Specified by:
play
in interfaceSoundGroup
- Parameters:
soundName
- name of soundvolume
- volumnelayerLevel
- on which layer should the sound be playedarea
- in which area is the sound hearable?fadeInDuration
- time the sound will fade inautoRepeat
- should the sound be played in a loop?clone
- should the sound be cloned for manipulation?- Returns:
- a handle to the sound, so that it can be cancled in case of looped sounds
-