title: Trying to combine 3 byte[] with bytebuffer but fails with offset
body: <p>I trying to combine 3 byte arrays to one big. I use bytebuffer to make it work. It works when I dont use the offset.</p>
  <p>So I have 3 bytearrays and want to skip the first 44 bytes in the first byte array. The size of it is 48044. The code works when I dont uses offset, as soon as I use it it fails to do the first put. I cant see what I miss here.</p>
  <pre><code>    byte[] combined = new byte[wavData.length - 44 + gap.length + toneArray.length];
      ByteBuffer byteBuffer = ByteBuffer.wrap(combined);
      byteBuffer.put(wavData, 44, wavData.length);
      byteBuffer.put(gap);
      byteBuffer.put(toneArray, 0, toneArray.length);
  </code></pre>