Skip to main content
IWMWriterSink interface

The IWMWriterSink interface is the basic interface of all writer sinks, including the file, network, and push sinks defined in the Windows Media Format SDK, and custom sinks. If you are using one of the defined writer sinks, you never need to deal with the methods of this interface. If you are creating your own custom writer sink, you must implement these methods in your application.

This interface exists on the writer file sink object, the writer network sink object, and the writer push sink object. You should never obtain a pointer to this interface from one of these objects, however, as its methods are called internally by the writer sink objects and the writer object. You can create a class in your application that inherits from this interface to make your own sink.

Members

The IWMWriterSink interface inherits from the IUnknown interface. IWMWriterSink also has these types of members:

Methods

The IWMWriterSink interface has these methods.

MethodDescription
AllocateDataUnit

Creates a buffer object to receive a data unit.

IsRealTime

Ascertains whether the sink requires samples to be sent in real time.

OnDataUnit

Called by the writer object when a data unit is ready for the sink.

OnEndWriting

Called by the writer when all data units have been sent.

OnHeader

Called by the writer when the ASF header is ready for the sink.

 

For information about which interfaces can be obtained by using the QueryInterface method of this interface, see the topic for the object on which this interface is implemented.

See also

Interfaces
Writer File Sink Object
Writer Network Sink Object
Writer Push Sink Object