Microsoft DirectX 9.0 SDK Update (October 2004)

Capturing Waveforms

Language:

Note: This documentation is preliminary and is subject to change.

Microsoft® DirectSound® enables you to capture sounds from a microphone or other input to the sound card, for immediate playback or storage in a file. Data can be captured in Pulse Code Modulation (PCM) or compressed formats.

The Capture object is used to query the capabilities of sound capture devices and to create buffers for capturing sound samples.

The CaptureBuffer object represents a buffer used for receiving data from the input device. This buffer is conceptually circular: When input reaches the end of the buffer, it automatically starts again at the beginning.

The methods of CaptureBuffer enable you to retrieve the properties of the buffer, start and stop audio capture, and retrieve data. On operating systems that support capture effects, it also provides methods for retrieving effect objects and ascertaining the status of effects.

More information about WAV capture is found in the following topics.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center