Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 3.61 KB

nf-portcls-iminiportwavertoutputstream-getoutputstreampresentationposition.md

File metadata and controls

74 lines (55 loc) · 3.61 KB
UID title description old-location tech.root ms.date keywords 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 f1_keywords topic_type api_type api_location api_name
NF:portcls.IMiniportWaveRTOutputStream.GetOutputStreamPresentationPosition
IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition (portcls.h)
Returns stream presentation information.
audio\iminiportwavertoutputstream_getoutputstreampresentationposition.htm
audio
05/08/2018
IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition
GetOutputStreamPresentationPosition, GetOutputStreamPresentationPosition method [Audio Devices], GetOutputStreamPresentationPosition method [Audio Devices],IMiniportWaveRTOutputStream interface, IMiniportWaveRTOutputStream interface [Audio Devices],GetOutputStreamPresentationPosition method, IMiniportWaveRTOutputStream.GetOutputStreamPresentationPosition, IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition, audio.iminiportwavertoutputstream_getoutputstreampresentationposition, portcls/IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition
portcls.h
Windows
Available in Windows 10 and later.
Passive level
Windows
IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition
portcls/IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition
APIRef
kbSyntax
COM
portcls.h
IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition

IMiniportWaveRTOutputStream::GetOutputStreamPresentationPosition

-description

Returns stream presentation information.

-parameters

-param pPresentationPosition [out]

pPresentationPosition returns a KSAUDIO_PRESENTATION_POSITION structure that represents a recent presentation position in the audio data stream. For more information, see IMiniportStreamAudioEngineNode::GetStreamPresentationPosition.

-returns

GetOutputStreamPresentationPosition returns STATUS_SUCCESS if the call was successful. Otherwise, the function returns an appropriate error status code.

-remarks

The OS may periodically get this property from the driver to retrieve recent presentation position information from the driver in order to allow upper layers to synchronize video or other activity with the audio stream.

The value returned in the u64PositionInBlocks member of KSAUDIO_PRESENTATION_POSITION should be consistent with the packet count returned by GetPacketCount and the driver’s interpretation of the packet number passed to SetWritePacket. In other words, the first sample of packet 0 is block 0.

This does not mean that GetPacketCount and GetOutputStreamPresentationPosition, if called simultaneously, would return values that refer to the same sample. GetPacketCount returns information about the samples transferred from the WaveRT buffer to the hardware, while GetOutputStreamPresentationPosition returns information about samples presented at the output of the system. These are two different pieces of information.

-see-also

IMiniportWaveRTOutputStream