Пример #1
0
        /// <summary>
        /// Wraps the WMCreateWriterFileSink function
        /// </summary>
        /// <returns>The file sink object</returns>
        public static IWMWriterFileSink CreateWriterFileSink()
        {
            IWMWriterFileSink res = null;

            Marshal.ThrowExceptionForHR(WMCreateWriterFileSink(out res));
            return(res);
        }
Пример #2
0
 /// <summary>
 /// Dispose of everything that may need disposing.
 /// </summary>
 public void Cleanup()
 {
     scriptBitrate      = 0;
     writerAdvanced     = null;
     writer             = null;
     netSink            = null;
     fileSink           = null;
     audioProps         = null;
     videoProps         = null;
     audioInput         = 0;
     videoInput         = 0;
     scriptStreamNumber = 0;
     profileManager     = null;
 }
Пример #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;
 }
Пример #4
0
 private static extern int WMCreateWriterFileSink([Out, MarshalAs(UnmanagedType.Interface)] out IWMWriterFileSink ppSink);
Пример #5
0
 public static extern int WMCreateWriterFileSink(
     out IWMWriterFileSink ppSink
     );