how to plot .wav file 2

today is extremely hot:
   continue that question I asked yesterday..
  I am planning to use a java application to read the data from .wav file and plot the waveform. I want to plot the data as double format. those data can be used to do further analysis such fft or more. Can you tell me how to extract the raw data from wave file and convert them to double format that I can use to do FFT.

   please !!! Christmas is coming !
                                                            Roy from melbourne
Who is Participating?
kengoudswardConnect With a Mentor Commented:
Hi Roy,

I don't have a specific example of how to do this but...
Java can do regular file IO and a .wav is really just a regular file, as long as you know the format. So what you need to do is learn about the format.
.wav is actually a variant on the RIFF format, which is fairly straightforward and uses some nice well-defined headers to wrap the actual data to make it meaningful.
There are many websites which explain the format, one is:
and many more can be found with a search such as "wav riff format" or similar
as far as file IO in java goes, there is some good info in the tutorials

the java tutorials are at
if you are not familiar with them I highly recommend them
royoz2003Author Commented:
Thanks Kengoudsward:
This  website is quite helpful ,  I can get enough things from it


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.