| Previous | Next |
| MF_E_NO_AUDIO_PLAYBACK_DEVICE | MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED |
MF_E_AUDIO_PLAYBACK_DEVICE_IN_USE
MF_E_AUDIO_PLAYBACK_DEVICE_IN_USE points to endpoint ownership and share-mode contention. Media Foundation's Streaming Audio Renderer ultimately uses an audio rendering device, and WASAPI defines when a render endpoint is considered in use.
Record the endpoint and the requested share mode
- Keep the SAR endpoint ID or endpoint role in the failure log so the busy device is unambiguous.
- Check for an existing exclusive-mode stream. WASAPI cannot initialize a shared-mode stream while the device is already operating exclusively.
- If the failing path requested exclusive mode, identify other shared or exclusive clients and check the endpoint's user-controlled exclusive-mode setting.
IAudioClient::Initialize documents AUDCLNT_E_DEVICE_IN_USE for an endpoint already used in exclusive mode or for an exclusive request against a device being used in shared mode. This makes process/session timing and share mode more useful than codec diagnostics. Recreating the decoder, changing container metadata, or increasing a Media Foundation sample queue will not resolve endpoint ownership. First prove which renderer endpoint was selected and who currently has it open.
Microsoft: IAudioClient::Initialize · Microsoft: selecting the SAR endpoint
Looking for a different code? Search another status or error code.