public static class NullSoundDevice.NullSoundHandle extends Object implements SoundHandle
Constructor and Description |
---|
NullSoundDevice.NullSoundHandle() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This Sound is not needed anymore and should be removed from the system.
|
float |
getVolume() |
boolean |
isPlaying()
Checks if this sound is still playing.
|
void |
play()
Play the sound.
|
void |
setVolume(float volume)
Change volume of the sound while it is playing.
|
void |
stop()
Stop the sound.
|
public void play()
SoundHandle
play
in interface SoundHandle
public void stop()
SoundHandle
stop
in interface SoundHandle
public void setVolume(float volume)
SoundHandle
setVolume
in interface SoundHandle
volume
- new value in range 0 to 1public float getVolume()
getVolume
in interface SoundHandle
public boolean isPlaying()
SoundHandle
isPlaying
in interface SoundHandle
public void dispose()
SoundHandle
dispose
in interface SoundHandle
Copyright © 2013. All Rights Reserved.