Skip to main content

Overview of WASAPI

Client applications can use the Windows Audio Session API (WASAPI) to manage the flow of audio data between the application and an audio endpoint device. To learn more, see About WASAPI.

Sample code

For sample code that demonstrates how to play an in-memory .wav file by using WASAPI, see the source code for the SimpleWASAPIPlaySound sample.

Device Invalidations

In the GDK, games are expected to handle audio client device invalidations. Invalidations can occur at any time including when the device is being activated or initialized. More info can be found in the XDK to GDK comparison.
Last modified on August 20, 2026