public void Init(double fps, TVStandard tvStd, BGFlags bgFlags) { LastEncoderParams = new EncoderParams { FPS = fps, TVStandard = tvStd, BGFlags = bgFlags }; if (FEncoderRingBuffer != null) { FEncoderRingBuffer.Dispose(); } var encoder = new Encoder(AudioEngine.Instance.Settings.SampleRate, fps, tvStd, bgFlags); FEncoderRingBuffer = new LTCPullBuffer(encoder); FInitialized = true; }
public void Init(double fps, TVStandard tvStd, BGFlags bgFlags) { LastEncoderParams = new EncoderParams { FPS = fps, TVStandard = tvStd, BGFlags = bgFlags }; if(FEncoderRingBuffer != null) FEncoderRingBuffer.Dispose(); var encoder = new Encoder(AudioEngine.Instance.Settings.SampleRate, fps, tvStd, bgFlags); FEncoderRingBuffer = new LTCPullBuffer(encoder); FInitialized = true; }