KSAUDIO_POSITIONEX structure (ksmedia.h)

The KSAUDIO_POSITIONEX structure specifies the stream position and the associated timestamp information for a kernel streaming (KS)-based audio driver.

Syntax

typedef struct {
  LARGE_INTEGER    TimerFrequency;
  LARGE_INTEGER    TimeStamp1;
  KSAUDIO_POSITION Position;
  LARGE_INTEGER    TimeStamp2;
} KSAUDIO_POSITIONEX, *PKSAUDIO_POSITIONEX;

Members

TimerFrequency

Specifies the number of ticks per second for the timer that produces the timestamps.

TimeStamp1

Specifies the timestamp that is taken immediately prior to the acquisition of the position information.

Position

Specifies the position of the read cursor and the write cursor in the audio buffer of an audio stream.

TimeStamp2

Specifies the timestamp that is taken immediately after the acquisition of the position information.

Remarks

A KS-based audio driver can use the KSAUDIO_POSITIONEX structure along with the KSPROPERTY_AUDIO_POSITIONEX property to return a stream position and a timestamp.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Header ksmedia.h (include Ksmedia.h)

See also

KSPROPERTY_AUDIO_POSITIONEX