| Previous | Next |
| MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED | MF_E_TOPO_INVALID_OPTIONAL_NODE |
MF_E_AUDIO_SERVICE_NOT_RUNNING
MF_E_AUDIO_SERVICE_NOT_RUNNING is a platform-service failure. Media Foundation audio capture and rendering rely on Windows audio infrastructure; the error is not evidence that the input file, microphone samples, or decoder output are corrupt.
Separate service state from endpoint and format errors
- Record whether the failure occurred while creating/initializing the audio stream or during
Start,Stop,Reset, or another WASAPI operation. - Check the Windows audio service state and the surrounding service-control events.
IAudioClientmethods explicitly returnAUDCLNT_E_SERVICE_NOT_RUNNINGwhen the Windows audio service is unavailable. - Do not map the result to “no playback device” or “device in use.” Those conditions have separate endpoint-specific failure paths.
Microsoft's invalid-device guidance also lists Windows audio-service shutdown as a reason an audio session can be disconnected. Preserve that timing: a stream that was previously running and then fails after service shutdown is different from an application that never found an endpoint. Once the audio service is available, rebuild the affected audio client/media path rather than assuming old stream objects remain valid.
Microsoft: IAudioClient::Initialize return codes · Microsoft: IAudioClient::Start · Microsoft: audio-session disconnection and recovery
Looking for a different code? Search another status or error code.