AudioFrame constructor

AudioFrame({
  1. Uint8List? samples,
  2. int epoch = 0,
  3. int sequence = 0,
  4. int frameSizeInInterleavedSamples = 0,
  5. int timeStampInInterleavedSamples = 0,
  6. bool isFirst = false,
  7. bool isLast = false,
  8. double averageVolume = 0.0,
  9. double audioEventEstimatedDuration = 0.0,
})

Implementation

AudioFrame({
    Uint8List? samples,
    this.epoch = 0,
    this.sequence = 0,
    this.frameSizeInInterleavedSamples = 0,
    this.timeStampInInterleavedSamples = 0,
    this.isFirst = false,
    this.isLast = false,
    this.averageVolume = 0.0,
    this.audioEventEstimatedDuration = 0.0,
}) : samples = samples ?? Uint8List(0);