AudioChunkInfo constructor

AudioChunkInfo({
  1. SampleFormat? sampleFormat,
  2. int? channels,
  3. Int64? samplingRate,
})

Implementation

factory AudioChunkInfo({
  SampleFormat? sampleFormat,
  $core.int? channels,
  $fixnum.Int64? samplingRate,
}) {
  final $result = create();
  if (sampleFormat != null) {
    $result.sampleFormat = sampleFormat;
  }
  if (channels != null) {
    $result.channels = channels;
  }
  if (samplingRate != null) {
    $result.samplingRate = samplingRate;
  }
  return $result;
}