int channel = 0; int numSamples = audioFile.getNumSamplesPerChannel(); for (int i = 0; i < numSamples; i++) { double currentSample = audioFile.samples[channel][i]; }