Playback constructor

Playback(
  1. int textureId,
  2. int audioBufferTime,
  3. int sampleRate,
  4. int channels,
  5. int audioFormat,
  6. int videoFormat, {
  7. void onFrame(
    1. int?
    )?,
})

Implementation

Playback(
  this.textureId,
  this.audioBufferTime,
  int sampleRate,
  int channels,
  int audioFormat,
  int videoFormat, {
  void Function(int?)? onFrame,
}) : _onFrame = onFrame {
  final sw = _sw = ffi.mallocSWContext();
  sw.ref.sampleRate = sampleRate;
  sw.ref.channels = channels;
  sw.ref.audioFormat = audioFormat;
  sw.ref.videoFormat = videoFormat;
}