Obtaining an AudioInputStream.
- By Tony Loton
- March 24, 2001
Java to go!
Java Sound QuickStart
Tony Loton
Listing 1. Obtaining an AudioInputStream.
AudioInputStream stream = AudioSystem
.getAudioInputStream( new File(fileName) );
AudioFormat format = stream.getFormat();