Playback constructor
Playback(})
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;
}