info.jonclark.media
Class SoundUtils

java.lang.Object
  extended by info.jonclark.media.SoundUtils

public class SoundUtils
extends Object

Author:
Jonathan

Constructor Summary
SoundUtils()
           
 
Method Summary
static void main(String[] args)
          Main method FOR TESTING
static void playSound(String path)
          Asynconously plays a sound file, given a path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundUtils

public SoundUtils()
Method Detail

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