Expand Minimize

KSAUDIO_PRESENTATION_POSITION structure

The KSAUDIO_PRESENTATION_POSITION structure specifies the current cursor position in audio data stream that is being rendered to the endpoint.

Syntax


typedef struct _KSAUDIO_PRESENTATION_POSITION {
  UINT64 u64PositionInBlocks;
  UINT64 u64QPCPosition;
} KSAUDIO_PRESENTATION_POSITION, *PKSAUDIO_PRESENTATION_POSITION;

Members

u64PositionInBlocks

Specifies the block offset from the start of the stream to the current post-decoded, uncompressed position in the stream. A "block" refers to the group of channels in the same sample. So, for example, in a PCM stream a block is the same as a frame. However, for compressed formats a block is a single sample within a frame. This means that for a typical MP3 stream that has 1152 samples in a frame, there are 1152 blocks.

u64QPCPosition

Specifies the value of the performance counter at the time that the audio driver reads the presentation position in response to the KSAUDIO_PRESENTATION_POSITION call. A driver writes to this field with the value read from calling KeQueryPerformanceCounter when a snapshot is taken of the presentation position.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Ksmedia.h

See also

KeQueryPerformanceCounter
KSAUDIO_PRESENTATION_POSITION
KSPROPERTY_AUDIO_PRESENTATION_POSITION

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft