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()
SoundHandleplay in interface SoundHandlepublic void stop()
SoundHandlestop in interface SoundHandlepublic void setVolume(float volume)
SoundHandlesetVolume in interface SoundHandlevolume - new value in range 0 to 1public float getVolume()
getVolume in interface SoundHandlepublic boolean isPlaying()
SoundHandleisPlaying in interface SoundHandlepublic void dispose()
SoundHandledispose in interface SoundHandleCopyright © 2013. All Rights Reserved.