Пример #1
0
 protected StreamThread(CancellationToken token, StreamKind kind, UsbDevStream dev, IOutTarget target, byte[] magic, int BufMax)
 {
     Token       = token;
     Kind        = kind;
     Device      = dev;
     Target      = target;
     MagicPacket = magic;
     MaxBufSize  = BufMax;
 }
Пример #2
0
 public AudioStreamThread(CancellationToken token, IOutTarget StreamTarget, UsbDevStream InputDevice, bool PrintStatsArg = false) :
     base(token, StreamKind.Audio, InputDevice, StreamTarget, REQMagic_AUDIO, AbufMaxSz)
 {
     PrintStats   = PrintStatsArg;
     UseDesyncFix = false;
 }
Пример #3
0
 public VideoStreamThread(CancellationToken token, IOutTarget StreamTarget, UsbDevStream InputDevice, bool PrintStatsArg = false, bool DesyncFix = false) :
     base(token, StreamKind.Video, InputDevice, StreamTarget, REQMagic_VIDEO, VbufMaxSz)
 {
     PrintStats   = PrintStatsArg;
     UseDesyncFix = DesyncFix;
 }