code: public void addSamplesToMD5(int[] samples, int count, int channels,
        int sampleSize) {
      int bytesPerSample = sampleSize/8;
      if(sampleSize%8 != 0)
        bytesPerSample++;
      if(_dataMD5 == null || _dataMD5.length < count*bytesPerSample*channels) {
        _dataMD5 = new byte[count*bytesPerSample*channels];
      }
      byte[] dataMD5 = _dataMD5;
      splitSamplesToBytes(samples, count*channels, bytesPerSample, dataMD5);
      md.update(dataMD5, 0, count*bytesPerSample*channels);
    }
docs: Add samples to the MD5 hash.
  CURRENTLY ONLY MAY WORK FOR: sample sizes which are divisible by 8. Need
  to create some audio to test with.
  @param samples
  @param count
  @param channels