code: public void setAll(int[] samples, int count, int start, int skip,
        long frameNumber, EncodedElement result) {
  //    assert(start == 0);
      this.samples = samples;
      this.count = count;
      this.start = start;
      this.skip = skip;
      this.frameNumber = frameNumber;
      this.result = result;
      valid = false;
      this.encodedSamples = 0;
    }
docs: Set all values, preparing this object to be sent to an encoder. Member
  variable "valid" is set to false by this call.
  
  @param samples Sample data, interleaved if multiple channels are used
  @param count Number of valid samples
  @param start Index of first valid sample
  @param skip  Number of samples to skip between samples(this should be
  equal to number-of-channels minus 1.
  @param frameNumber Framenumber assigned to this block.
  @param result Location to store result of encode.