コード例 #1
0
        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;
        }
コード例 #2
0
		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;
		}