What problem does it solve? Windows audio development with WASAPI involves real-time buffer protocols, COM threading rules, format negotiation, and device-change recovery that are easy to get wrong, causing glitches, underruns, and crashes. This Skill provides structured guidance for building correct, low-latency audio capture, render, and loopback streams. ## Core Features & Use Cases - Stream Implementation Guidance: Covers render, capture, endpoint loopback, and process loopback scenarios using IAudioClient/IAudioClient3, IAudioRenderClient, and IAudioCaptureClient with correct GetBuffer/ReleaseBuffer pairing. - Latency and Scheduling Control: Explains shared vs exclusive mode, event-driven streaming, period negotiation, and MMCSS scheduling for glitch-resistant real-time audio. - Device and Error Recovery: Details MMDevice endpoint selection, IMMNotificationClient change handling, and recovery from AUDCLNT_E_DEVICE_INVALIDATED and related errors. - Use Case: When adding system loopback capture to a WinUI 3 audio visualizer, use this Skill to negotiate the mix format, set up an event-driven capture loop, and handle device unplug/replug without crashing. ## Quick Start Use the wasapi-development skill to implement a shared-mode event-driven loopback capture stream in my C# Windows app with proper device-invalidation recovery.