// ksmedia.h
typedef struct _KSAUDIO_PACKETSIZE_CONSTRAINTS {
ULONG MinPacketPeriodInHns;
ULONG PacketSizeFileAlignment;
ULONG Reserved;
ULONG NumProcessingModeConstraints;
KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT ProcessingModeConstraints[ANYSIZE_ARRAY];
} KSAUDIO_PACKETSIZE_CONSTRAINTS;
View the official Windows Driver Kit DDI referenceNo description available.
The KSAUDIO_PACKETSIZE_CONSTRAINTS structure describes the physical hardware constraints. It includes an array of 0 or more KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT structures describing constraints specific to any signal processing modes. The driver sets this property before calling PcRegisterSubdevice or otherwise enabling its KS filter interface for its streaming pins.
MinPacketPeriodInHnsThe absolute minimum processing period supported by the driver expressed in hundred-nanosecond (HNS) units. This value can be 0 if the driver has no specific minimum processing period.
PacketSizeFileAlignmentThe byte size alignment requirement. Use one of these defined file alignment values:
ReservedUnused.
NumProcessingModeConstraintsThe number of additional constraints for specific processing modes. This value can be 0.
ProcessingModeConstraintsAn array of 0 or more processing mode constraints.
The driver sets this variable length data structure as the value of the DEVPKEY_KsAudio_PacketSize_Constraints property on the PnP interface of the KS filter that has the streaming pins with the constraints.
For WaveRT drivers, this data structure describes the constraints for a WaveRT packet. Several WaveRT packets (typically 2) are concatenated to form the WaveRT buffer.
KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT