public void dumpBinary(DataOutputStream os) throws IOException {
  os.writeInt(frameData.length);
  for (int i=0; i < frameData.length; i++) {
    os.writeShort(frameData[i]);
  }
  os.writeInt(residualData.length);
  for (int i=0; i < residualData.length; i++) {
    os.writeByte(residualData[i]);
  }
}

public void dumpBinary ( DataOutputStream os ) throws IOException { os . writeInt ( frameData . length ) ; for ( int i = 0 ; i < frameData . length ; i ++ ) { os . writeShort ( frameData [ i ] ) ; } os . writeInt ( residualData . length ) ; for ( int i = 0 ; i < residualData . length ; i ++ ) { os . writeByte ( residualData [ i ] ) ; } }
dumps the samples to the given stream
