AudioDataInit constructor

AudioDataInit({
  1. required AudioSampleFormat format,
  2. required double sampleRate,
  3. required int numberOfFrames,
  4. required int numberOfChannels,
  5. required int timestamp,
  6. dynamic data,
})

Implementation

factory AudioDataInit(
        {required AudioSampleFormat format,
        required double sampleRate,
        required int numberOfFrames,
        required int numberOfChannels,
        required int timestamp,
        dynamic data}) =>
    AudioDataInit._(
        format: format.value,
        sampleRate: sampleRate,
        numberOfFrames: numberOfFrames,
        numberOfChannels: numberOfChannels,
        timestamp: timestamp,
        data: data ?? undefined);