Audio Capture

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

An application can use DirectShow to capture audio data from microphones, tape players, and other devices, through the inputs on the sound card. Typical scenarios include:

  • Recording a voiceover narration for later dubbing over a video stream.
  • Converting legacy analog audio content to digital format.
  • Capturing voice or music for transmission over a network.

End users have several options for capturing audio from the sound card to the hard disk. Most cards provide applications for mixing and recording from their audio inputs. Windows provides Sound Recorder, a simple utility application for recording from a microphone. The Windows Media Encoder can be incorporated into a DirectShow application as a DirectX Media Object (DMO). This section describes how to integrate audio capture functionality within your own application using DirectShow.

This section contains the following topics:

Using DirectShow