Demonstrates how to do various audio related tasks using the Windows Audio Session API (WASAPI).
Specifically, this sample covers:
- Enumerating audio playback devices attached to the system and retrieve additional properties.
- Demonstrates how to opt-in to hardware audio offload on supported devices.
- Demonstrates how to implement the basic media transport controls in order to properly support background audio playback.
- Playback of audio using the Windows Audio Session APIs.
- Capture of PCM audio using the Windows Audio Session APIs.
- Low latency audio playback and capture.
For more information on adding audio to your Windows Store app, see Quickstart: adding audio to an app.
Roadmaps
Roadmap for apps using C# and Visual Basic
Roadmap for apps using JavaScript
Reference
Windows Audio Session API (WASAPI)
Client: Windows 10 Windows Phone 10
To build this sample, open the solution (.sln) file in any version of Visual Studio, and then press F7 or select Build > Build Solution from the main menu.
To run this sample after building it, press F5 (run with debugging enabled) or Ctrl-F5 (run without debugging enabled) from Visual Studio 2013 for Windows 8.1 (any SKU). (Or select the corresponding options from the Debug menu.)