TRTCAudioFrame constructor

TRTCAudioFrame(
  1. {TRTCAudioFrameFormat audioFormat = TRTCAudioFrameFormat.none,
  2. int length = 0,
  3. int sampleRate = 0,
  4. int channel = 0,
  5. int timestamp = 0,
  6. int extraDataLength = 0,
  7. Uint8List? data,
  8. Uint8List? extraData}
)

Implementation

TRTCAudioFrame({
  this.audioFormat = TRTCAudioFrameFormat.none,
  this.length = 0,
  this.sampleRate = 0,
  this.channel = 0,
  this.timestamp = 0,
  this.extraDataLength = 0,
  Uint8List? data,
  Uint8List? extraData,
}) : data = data ?? Uint8List.fromList([]),
    extraData = extraData ?? Uint8List.fromList([]);