// ksmedia.h
typedef struct {
ULONG PacketNumber;
DWORD Flags;
ULONG EosPacketLength;
} KSRTAUDIO_SETWRITEPACKET_INFO, *PKSRTAUDIO_SETWRITEPACKET_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
The KSRTAUDIO_SETWRITEPACKET_INFO structure describes information associated with an audio packet.
PacketNumberThe number of the packet written by the OS to the WaveRT buffer. Depending on the values returned by the driver in the KSPROPERTY_RTAUDIO_GETPACKETCOUNT property, the PacketNumber may skip values. For more information, see KSPROPERTY_RTAUDIO_PACKETCOUNT.
FlagsAdditional attributes related to the packet or stream.
KSSTREAM_HEADER_OPTIONSF_ENDOFSTREAM - This flag indicates that this packet represents the end of the data stream.
EosPacketLengthThe length of the EOS packet if KSSTREAM_HEADER_OPTIONSF_ENDOFSTREAM is specified in Flags. Zero is a valid value. If KSSTREAM_HEADER_OPTIONSF_ENDOFSTREAM is not specified in Flags, this parameter is ignored. The EosPacketLength is measured in bytes.
KSPROPERTY_RTAUDIO_SETWRITEPACKET