/// <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); }
/// <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; }
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; }
private static extern int WMCreateWriterFileSink([Out, MarshalAs(UnmanagedType.Interface)] out IWMWriterFileSink ppSink);
public static extern int WMCreateWriterFileSink( out IWMWriterFileSink ppSink );