WMEncoder.Flush
The Flush method causes the samples that have been stored in memory and on disk to be ignored.
Syntax
WMEncoder.Flush
Parameters
This method takes no parameters.
Return Values
This method does not return a value.
Remarks
If data is saved to disk as temporary storage, after you call Flush, the data is cleared when you call Stop or Pause rather than waiting for the data to be processed. Otherwise, when you call Stop or Pause, the encoding session continues to process all of the samples in memory and on disk, which may take a long time depending on the number of samples in the queue. Calling Flush stops this processing and ignores the samples, but does not stop sample queuing.
If you want to store content to disk for temporary storage, which is useful during non-real-time encoding, you must use the Advanced tab of the Windows Media Encoder user interface (UI). For more information about displaying elements from the Windows Media Encoder UI, see Using the Predefined User Interfaces.
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also