| Previous | Next |
| MF_E_CAPTURE_SOURCE_NO_VIDEO_STREAM_PRESENT | MF_E_CAPTURE_SOURCE_DEVICE_EXTENDEDPROP_OP_IN_PROGRESS |
MF_E_CAPTURE_SOURCE_NO_AUDIO_STREAM_PRESENT
MF_E_CAPTURE_SOURCE_NO_AUDIO_STREAM_PRESENT is the audio counterpart of a missing capture stream category. IMFCaptureEngine::Initialize can run in video-only mode, can use a caller-supplied audio source, or can select a camera microphone/default audio capture device when no explicit audio source is provided.
Trace audio-device selection and source streams
Log MF_CAPTURE_ENGINE_USE_VIDEO_DEVICE_ONLY, the pAudioSource argument, and the identity of the selected audio capture device. After initialization, enumerate device streams and their MF_CAPTURE_ENGINE_STREAM_CATEGORY values.
A video capture device does not imply that the resulting Capture Engine source has an audio stream. The initialization contract says Media Foundation first considers the microphone built into the selected video camera and otherwise can enumerate audio capture devices, unless video-only mode disables audio use. When audio is optional, omit the audio stream from the record sink. When it is required, fix device/source selection before encoder or container diagnostics.
Microsoft: Initialize audio-device selection · Microsoft: capture source stream enumeration · Microsoft: stream categories
Looking for a different code? Search another status or error code.