Contains performance information.
typedef struct XAUDIO2_PERFORMANCE_DATA {
UINT64 AudioCyclesSinceLastQuery;
UINT64 TotalCyclesSinceLastQuery;
UINT32 MinimumCyclesPerQuantum;
UINT32 MaximumCyclesPerQuantum;
UINT32 MemoryUsageInBytes;
UINT32 CurrentLatencyInSamples;
UINT32 GlitchesSinceEngineStarted;
UINT32 ActiveSourceVoiceCount;
UINT32 TotalSourceVoiceCount;
UINT32 ActiveSubmixVoiceCount;
UINT32 ActiveResamplerCount;
UINT32 ActiveMatrixMixCount;
UINT32 ActiveXmaSourceVoices;
UINT32 ActiveXmaStreams;
} XAUDIO2_PERFORMANCE_DATA;
AudioCyclesSinceLastQuery
CPU cycles spent on audio processing since the last call to the IXAudio2::StartEngine or IXAudio2::GetPerformanceData function.
TotalCyclesSinceLastQuery
Total CPU cycles elapsed since the last call.
Note
This only counts cycles on the CPU on which XAudio2 is running.
MinimumCyclesPerQuantum
Fewest CPU cycles spent on processing any single audio quantum since the last call.
MaximumCyclesPerQuantum
Most CPU cycles spent on processing any single audio quantum since the last call.
MemoryUsageInBytes
Total memory currently in use.
CurrentLatencyInSamples
Minimum delay that occurs between the time a sample is read from a source buffer and the time it reaches the speakers. The delay reported is a variable value equal to the rough distance between the last sample submitted to the driver by XAudio2 and the sample currently playing. The following factors can affect the delay: playing multichannel audio on a hardware-accelerated device; the type of audio device (WavePci, WaveCyclic, or WaveRT); and, to a lesser extent, audio hardware implementation.
GlitchesSinceEngineStarted
Total audio dropouts since the engine started.
ActiveSourceVoiceCount
Number of source voices currently playing.
TotalSourceVoiceCount
Total number of source voices currently in existence.
ActiveSubmixVoiceCount
Number of submix voices currently playing.
ActiveResamplerCount
Number of resampler xAPOs currently active.
ActiveMatrixMixCount
Number of matrix mix xAPOs currently active.
ActiveXmaSourceVoices
Currently unsupported on Xbox One.
ActiveXmaStreams
Currently unsupported on Xbox One.
CPU cycles are recorded using . Use to convert these values.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.