Beispiel #1
0
 public GraphBuilder(MediaBuffer mb, int index)
 {
     eventLog    = new EventLog("WMG", ".", "WMGCore");
     playing     = false;
     rotnum      = 0;
     mediaBuffer = mb;
     this.ssrc   = 0;
     this.index  = index;
     callBack    = new SGCallback(mediaBuffer, index);
     errorMsg    = "";
 }
Beispiel #2
0
 public AudioGraphBuilder(MediaBuffer mb, int index, bool muted) :
     base(mb, index)
 {
     this.muted = muted;
     if (muted)
     {
         volume = SILENCE;
     }
     else
     {
         volume = FULL_VOLUME;
     }
 }
Beispiel #3
0
 public WMWriter(MediaBuffer mb)
 {
     eventLog           = new EventLog("WMG", ".", "WMGCore");
     mb.OnSampleReady  += new MediaBuffer.sampleReadyHandler(ReceiveSample);
     scriptBitrate      = 0;
     writerAdvanced     = null;
     writer             = null;
     netSink            = null;
     fileSink           = null;
     audioProps         = null;
     videoProps         = null;
     audioInput         = 0;
     videoInput         = 0;
     scriptStreamNumber = 0;
     lastWriteTime      = 0;
     profileManager     = null;
     writeFailed        = false;
 }
Beispiel #4
0
 public SGCallback(MediaBuffer buf, int index)
 {
     mediaBuffer = buf;
     this.index  = index;
 }
 public VideoGraphBuilder(MediaBuffer mb, int index, bool visible) :
     base(mb, index)
 {
     this.visible = visible;
 }