I have used code from to create a buffer from a wav file in which data is read in blocks of 100 frames.
Please see link below for original code:
I now need to create an ArrayList in which each element consists of 100 frames from the wav file (The first element 0-99, the second 100-199 etc...)
What I have tried:
I am having trouble figuring out how to implement this into the code I've currently tried:
int numChannels = wavFile.getNumChannels();
double buffer = new double[100 * numChannels];
framesRead = wavFile.readFrames(buffer, 100);
while (framesRead != 0);
I am not sure what way in which I should construct the Array List, or populate it.
Any advice about how I can achieve this would be greatly appreciated.