| Previous | Next |
| MF_E_AUDIO_PLAYBACK_DEVICE_IN_USE | MF_E_AUDIO_SERVICE_NOT_RUNNING |
MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED
MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED means the playback endpoint's lifetime changed after the audio path was created. WASAPI returns its corresponding invalid-device state when an endpoint is unplugged, disabled, removed, reconfigured, or otherwise made unavailable.
Re-evaluate the endpoint instead of retrying the closed stream
- Log the selected SAR endpoint ID or role and the first audio operation that reports failure.
- For default-device playback, release interfaces associated with the invalid device, obtain the current default rendering endpoint, and activate a new audio client as described by Microsoft's recovery guidance.
- For a specifically selected endpoint, decide whether the application should wait for that device or select another one. Do not silently switch policies without recording the original endpoint ID.
WASAPI also closes streams when an audio session is disconnected because an endpoint was removed, the preferred stream format changed, or a shared-mode session yielded to exclusive access. The exact event timeline matters. Compare endpoint enumeration and default-role assignment before and after the failure. Decoder reinitialization alone does not restore an endpoint whose hardware or audio resources have been invalidated.
Microsoft: recovering from an invalid audio device · Microsoft: Streaming Audio Renderer endpoint selection
Looking for a different code? Search another status or error code.