Skip to main content
Buffer Object

A buffer object is used to hold samples and deliver them between the objects of the Windows Media Format SDK and your application. When you write a file, you pass your input samples to the writer using buffer objects. When you read a file, the reader object or synchronous reader object provides samples to your application in buffer objects.

For writing samples to a file, you can create a buffer object using the IWMWriter::AllocateSample method. For reading samples, the reader object and synchronous reader object both create buffer objects internally. If you choose to, you can allocate your own buffer objects for file reading by using IWMReaderAllocatorEx::AllocateForOutputEx or IWMReaderAllocatorEx::AllocateForStreamEx.

The following interfaces are supported by every buffer object.

Interface Description
INSSBuffer Controls and provides access to the buffer.
INSSBuffer2 Not implemented.
INSSBuffer3 Supports buffer properties, which are used for data unit extensions.
INSSBuffer4 Enumerates buffer properties.


Related topics