public void dumpBinary(ByteBuffer bb) throws IOException {
  bb.putInt(frameData.length);
  for (int i=0; i < frameData.length; i++) {
    bb.putShort(frameData[i]);
  }
  bb.putInt(residualData.length);
  bb.put(residualData);
}

public void dumpBinary ( ByteBuffer bb ) throws IOException { bb . putInt ( frameData . length ) ; for ( int i = 0 ; i < frameData . length ; i ++ ) { bb . putShort ( frameData [ i ] ) ; } bb . putInt ( residualData . length ) ; bb . put ( residualData ) ; }
dumps the samples to the given bytebuffer
