public class AudioPlayer
extends java.lang.Object
Constructor and Description |
---|
AudioPlayer()
Create an audio player.
|
Modifier and Type | Method and Description |
---|---|
void |
loop(Sound s)
Start playing the given sound, and repeat playing it until told
to stop.
|
static void |
main(java.lang.String[] args)
Test the audio player.
|
void |
play(Sound s)
Start playing the given sound, and play it once, or until told
to stop.
|
void |
stop(Sound s)
Stop playing the given sound.
|
public void play(Sound s)
public void loop(Sound s)
public void stop(Sound s)
public static void main(java.lang.String[] args)