/** * Get a sound and play it * * @author Pat Troy: troy AT uic DOT edu */ // import the needed libraries for this program import java.awt.*; // Note the name of the class in the following line MUST // match the name of the file. public class WavConvert { public static void main (String[] args) { // create an image to draw on String openFileName = FileChooser.pickAFile (); int posInString = openFileName.lastIndexOf ('.'); String convertFileName = openFileName.substring (0, posInString); convertFileName = convertFileName + "Convert.wav"; System.out.println (convertFileName); SimpleSound.convert (openFileName, convertFileName); // now open the Sound and explore it. Sound s1 = new Sound (convertFileName); s1.explore(); System.out.println ("End of Execution"); } } // end of public class