info.jonclark.media
Class SoundUtils
java.lang.Object
info.jonclark.media.SoundUtils
public class SoundUtils
- extends Object
- Author:
- Jonathan
|
Method Summary |
static void |
main(String[] args)
Main method FOR TESTING |
static void |
playSound(String path)
Asynconously plays a sound file, given a path. |
SoundUtils
public SoundUtils()
playSound
public static void playSound(String path)
throws UnsupportedAudioFileException,
IOException,
LineUnavailableException
- Asynconously plays a sound file, given a path.
- Throws:
IOException - If there is a problem when attempting to open or read
the file at path.
UnsupportedAudioFileException - If the format of the specified sound file is not
recognized.
LineUnavailableException - If there is no output line available to play the
sound.
main
public static void main(String[] args)
throws Exception
- Main method FOR TESTING
- Parameters:
args -
- Throws:
Exception