AudioDataCopyToOptions constructor

AudioDataCopyToOptions({
  1. required int planeIndex,
  2. int? frameOffset,
  3. int? frameCount,
  4. AudioSampleFormat? format,
})

Implementation

factory AudioDataCopyToOptions(
        {required int planeIndex,
        int? frameOffset,
        int? frameCount,
        AudioSampleFormat? format}) =>
    AudioDataCopyToOptions._(
        planeIndex: planeIndex,
        frameOffset: frameOffset ?? 0,
        frameCount: frameCount ?? undefined,
        format: format?.value ?? undefined);