I have a trouble in reading a wav file. Actually i have to read a file and then calculate amplitude in each sampling in an array. Is there any function to calculate amplitude ?
Joined: Oct 25, 2009
I have to make a graph that compares the amplitude and sample number of a music file. I can use AudioInputStream, AudioFormat, and SourceDataLine to get the total number of samples and all that stuff, and I can get a byte array representation of the file, but I don't know how to go through each sample frame and get the amplitude for each of them. Can someone please help???