Beispiel #1
0
 public NdiVideoSink(NDI.Sender ndiSender, int requestedWidth, int requestedHeight, int frameRateNumerator, int frameRateDenominator, VideoFormat format)
     : base(format)
 {
     _FrameRateNumerator   = frameRateNumerator;
     _FrameRateDenominator = frameRateDenominator;
     _RequestedHeight      = requestedHeight;
     _RequestedWidth       = requestedWidth;
     _NdiSender            = ndiSender;
     _VideoBuffer          = VideoBuffer.CreateBlack(requestedWidth, requestedHeight, format.Name);
 }
Beispiel #2
0
 private void Initialize(NDI.Sender ndiSender, int maxRate, int sampleRate, int channelCount)
 {
     _NdiSender          = ndiSender;
     _NdiAudioFrame16bpp = new NDI.AudioFrame16bpp(maxRate, sampleRate, channelCount);
 }
Beispiel #3
0
 public NdiAudioSink(NDI.Sender ndiSender, int maxRate, int sampleRate, int channelCount, AudioFormat format)
     : base(format)
 {
     Initialize(ndiSender, maxRate, sampleRate, channelCount);  // 20ms audio samples.
 }