Skip to content

Latest commit

 

History

History
112 lines (89 loc) · 3.29 KB

nf-mfreadwrite-imfsinkwriter-writesample.md

File metadata and controls

112 lines (89 loc) · 3.29 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfreadwrite.IMFSinkWriter.WriteSample
IMFSinkWriter::WriteSample (mfreadwrite.h)
Delivers a sample to the sink writer.
IMFSinkWriter interface [Media Foundation]
WriteSample method
IMFSinkWriter.WriteSample
IMFSinkWriter::WriteSample
WriteSample
WriteSample method [Media Foundation]
WriteSample method [Media Foundation]
IMFSinkWriter interface
mf.imfsinkwriter_writesample
mfreadwrite/IMFSinkWriter::WriteSample
mf\imfsinkwriter_writesample.htm
mf
1c65a5d0-cc1b-456e-9d88-a24da57ee30a
12/05/2018
IMFSinkWriter interface [Media Foundation],WriteSample method, IMFSinkWriter.WriteSample, IMFSinkWriter::WriteSample, WriteSample, WriteSample method [Media Foundation], WriteSample method [Media Foundation],IMFSinkWriter interface, mf.imfsinkwriter_writesample, mfreadwrite/IMFSinkWriter::WriteSample
mfreadwrite.h
Windows
Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 R2 [desktop apps \| UWP apps]
Windows
19H1
IMFSinkWriter::WriteSample
mfreadwrite/IMFSinkWriter::WriteSample
c++
APIRef
kbSyntax
COM
mfreadwrite.h
IMFSinkWriter.WriteSample

IMFSinkWriter::WriteSample

-description

Delivers a sample to the sink writer.

-parameters

-param dwStreamIndex [in]

The zero-based index of the stream for this sample.

-param pSample [in]

A pointer to the IMFSample interface of the sample.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_INVALIDREQUEST
The request is invalid.

-remarks

You must call IMFSinkWriter::BeginWriting before calling this method. Otherwise, the method returns MF_E_INVALIDREQUEST.

By default, the sink writer limits the rate of incoming data by blocking the calling thread inside the WriteSample method. This prevents the application from delivering samples too quickly. To disable this behavior, set the MF_SINK_WRITER_DISABLE_THROTTLING attribute when you create the sink writer.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

-see-also

IMFSinkWriter

Sink Writer