...
public Frame process(long timestamp) throws IOException {
...
if (len < frameSize) {
padding(data, frameSize - len);
eom = true;
}
..
private void padding(byte[] data, int count) {
int offset = data.length - count;
for (int i = 0; i < count; i++) {
data[i + offset] = 0;
}
}
Any other thoughts?
Best regards.
-brad