If you don't care about the longevity of your code, Quicktime For Java is a good bet for the media. It runs on Windows and Mac and will read and write almost any audio (and video) format. The downside is that Apple has not supported it for many years, so while it still works, you are investing in dying technology.
Duncan mcgregor
source share