StreamInfo constructor

StreamInfo(
  1. bool isLast,
  2. Uint8List rawData,
  3. int dataLength
)

create StreamInfo

Implementation

StreamInfo(bool isLast, Uint8List rawData, int dataLength)
    : super(BlockType.STREAMINFO, isLast, rawData, dataLength) {
  minBlockSize = _reader.getInt(MIN_BLOCK_SIZE);
  maxBlockSize = _reader.getInt(MAX_BLOCK_SIZE);
  minFrameSize = _reader.getInt(MIN_FRAME_SIZE);
  maxFrameSize = _reader.getInt(MAX_FRAME_SIZE);
  sampleRate = _reader.getInt(SAMPLE_RATE);
  channels = _reader.getInt(CHANNELS_SIZE) + 1;
  bitsPerSample = _reader.getInt(BITS_PER_SAMPLE_SIZE) + 1;
  totalSamples = _reader.getInt(TOTAL_SAMPLES_SIZE);
  var md5 = _reader.getUint8List(MD5SUM_SIZE);
  md5sum = HEX.encode(md5.toList());
}