Can someone help me understand this loop?
byte tempBuffer[] = new byte[64*1024];
for (int i = 0; i < tempBuffer.length; i++) {
wavPanel.addAudioByte(tempBuffer[i]);
}
In my opinion it works like this:
- cycle as many times as the size of tempBuffer in the meantime
- fill the tempBuffer with bytes or maybe execute the
addAudioByte()method of thewavPanelobject n times
Sorry for my confusion.
Can someone tell me, in words, what the loop does?
Thanks in advance.
Carlos Frerera