Reading wav file in Java

The official Java Sound Programmer Guide walks through reading and writing audio files.

This article by A Greensted: Reading and Writing Wav Files in java should be helpful. The WavFile class is very useful and it can be tweaked to return the entire data array instead of buffered fragments.


Equivalent to matlab's wavread function:

http://web.archive.org/web/20120531113946/http://www.builogic.com/java/javasound-read-write.html