public NdiAudioSource(NDI.Receiver ndiReceiver, AudioFormat format, int clockRate, int channelCount) : base(format) { _NdiReceiver = ndiReceiver; _SampleRate = clockRate; _NumChannels = channelCount; }
public NdiCapturer(NdiCaptureOptions options) : base(options) { _NdiReceiver = new NDI.Receiver(options.StreamName, "LiveSwitchConnect"); _NdiReceiver.IsAudioEnabled = !options.NoAudio; _NdiReceiver.IsVideoEnabled = !options.NoVideo; _PerformanceTimer = new Timer(10000); _PerformanceTimer.Elapsed += new ElapsedEventHandler(OnPerformanceTimer); ProcessVideoFormat(); }
public NdiVideoSource(NDI.Receiver ndiReceiver, ImageFormat format) : base(ImageFormatExtensions.CreateFormat(format)) { _NdiReceiver = ndiReceiver; _FourCC = OutputFormat.FourCC; }