public interface Sound
loadSound()
functions.
Sounds can be played repeatedly in an overlapping fashion.Modifier and Type | Method and Description |
---|---|
void |
play()
Plays this Sound.
|
void |
play(double volume)
Plays this Sound with a specified volume.
|
void |
play(double volume,
double pan)
Plays this Sound with a specified volume and pan.
|
void |
stop()
Stops this Sound from playing.
|
void |
unload()
Unloads this Sound from the system.
|
void play()
void play(double volume)
volume
- the volume at which to play this Soundvoid play(double volume, double pan)
volume
- the volume at which to play this Soundpan
- the pan value to play this Sound [-1.0,1.0], values outside
the valid range will assume no panning (0.0)void stop()
void unload()