gov.nasa.worldwind.examples.util
Class AudioPlayer
java.lang.Object
gov.nasa.worldwind.examples.util.AudioPlayer
public class AudioPlayer
- extends Object
Plays an audio file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_PAUSE
public static final String STATUS_PAUSE
- See Also:
- Constant Field Values
STATUS_PLAY
public static final String STATUS_PLAY
- See Also:
- Constant Field Values
STATUS_STOP
public static final String STATUS_STOP
- See Also:
- Constant Field Values
AudioPlayer
public AudioPlayer()
AudioPlayer
public AudioPlayer(File audioFile)
throws IOException,
UnsupportedAudioFileException,
LineUnavailableException
- Throws:
IOException
UnsupportedAudioFileException
LineUnavailableException
AudioPlayer
public AudioPlayer(URL audioURL)
throws IOException,
UnsupportedAudioFileException,
LineUnavailableException
- Throws:
IOException
UnsupportedAudioFileException
LineUnavailableException
getAudioURL
public URL getAudioURL()
getMillisecondLength
public long getMillisecondLength()
getMillisecondPosition
public long getMillisecondPosition()
getStatus
public String getStatus()
pause
public void pause()
play
public void play()
setAudioURL
public void setAudioURL(URL audioURL)
throws IOException,
UnsupportedAudioFileException,
LineUnavailableException
- Throws:
IOException
UnsupportedAudioFileException
LineUnavailableException
setMillisecondPosition
public void setMillisecondPosition(long position)
stop
public void stop()