Class NoSoundGroup
java.lang.Object
games.stendhal.client.sound.nosound.NoSoundGroup
- All Implemented Interfaces:
SoundGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeVolume(float intToFloat)changes the volumnevoidenables streaming for this group.floatgets the current volumnebooleanloadSound(String name, String fileURI, 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
-
NoSoundGroup
public NoSoundGroup()
-
-
Method Details
-
changeVolume
public void changeVolume(float intToFloat)Description copied from interface:SoundGroupchanges the volumne- Specified by:
changeVolumein interfaceSoundGroup- Parameters:
intToFloat- volume
-
getVolume
public float getVolume()Description copied from interface:SoundGroupgets the current volumne- Specified by:
getVolumein interfaceSoundGroup- Returns:
- volumne
-
loadSound
public boolean loadSound(String name, String fileURI, SoundFileType fileType, boolean enableStreaming)Description copied from interface:SoundGroupLoads a sound- Specified by:
loadSoundin interfaceSoundGroup- Parameters:
name- name of soundfileURI- "audio:/"fileType- Type.OGGenableStreaming- should streaming be enabled?- Returns:
- true, if the sound could be loaded; false otherwise.
-
play
public SoundHandle play(String soundName, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)Description copied from interface:SoundGroupplays a sound- Specified by:
playin 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 SoundHandle play(String soundName, float volume, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)Description copied from interface:SoundGroupplays a sound- Specified by:
playin 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
-
enableStreaming
public void enableStreaming()Description copied from interface:SoundGroupenables streaming for this group.- Specified by:
enableStreamingin interfaceSoundGroup
-