public class FilePlayer extends Player
amplitude, amplitudeAudioStream, audioFormat, audioSource
Constructor and Description |
---|
FilePlayer() |
FilePlayer(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPaused() |
boolean |
isPlaying() |
boolean |
isStarted() |
boolean |
isStopped() |
void |
pause() |
void |
play() |
protected void |
reset() |
void |
restart() |
void |
setAudioFile(java.io.File file) |
void |
stop() |
canProvide, provide20MsAudio, setAudioSource, setVolume
public FilePlayer()
public FilePlayer(java.io.File file) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException