views:

150

answers:

1

Hi does anyone know how to find the amplitudes within a WAV file in Java? If the file was stereo (or has more channels) how can the data be put into arrays?

Thanks!

+1  A: 

Processing a WAV file header

Next trick is a bit more of a challenge as the internal data format could be a variety of data types. If you are looking at your classic windows WAV file, it is probably just PCM 16 bit or maybe 8 bit. Which, means, you can easily load the data into a byte or short array.

However, you will find other formats. When you know the type you have, google it. You'll find information for most.

Jim Rush