What does HRESULT 0xC00D3EA0 (MF_E_AUDIO_RECORDING_DEVICE_IN_USE) mean?

 
Previous Next
MF_E_NO_AUDIO_RECORDING_DEVICE MF_E_AUDIO_RECORDING_DEVICE_INVALIDATED

MF_E_AUDIO_RECORDING_DEVICE_IN_USE

MF_E_AUDIO_RECORDING_DEVICE_IN_USE indicates contention for the audio capture endpoint. Media Foundation audio capture is built on WASAPI, where shared-mode and exclusive-mode streams have different ownership rules.

Check the endpoint mode and existing audio clients

  • Record the capture endpoint ID and whether the failing path requested shared or exclusive access.
  • Look for another application or another part of the same process that opened the endpoint in exclusive mode. WASAPI rejects a shared-mode stream when the device is already operating exclusively.
  • If the caller requests exclusive mode, verify both device availability and the user-controlled exclusive-mode policy. Do not treat an in-use result as an unsupported audio format without checking the WASAPI error path.

IAudioClient::Initialize defines device-in-use as either an endpoint already used in exclusive mode or a request for exclusive access while the device is operating in shared mode. The useful diagnostic data are therefore endpoint ID, share mode, process/session ownership, and timing of stream initialization. Changing microphone sample data or encoder settings will not release the endpoint.

Microsoft: IAudioClient::Initialize · Microsoft: Media Foundation audio capture


Looking for a different code? Search another status or error code.