Platform SDK: DirectX

CaptureSound Sample

[Visual Basic]

This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.

[C++]

Description

The CaptureSound program demonstrates how to use DirectSound to capture sound to a wave file.

A microphone or other audio input is required.

Path

Source: (SDK root)\Samples\Multimedia\DSound\Src\CaptureSound

Executable: (SDK root)\Samples\Multimedia\DSound\Bin\CaptureSound.exe

User's Guide

Highlight a capture format and click OK. Click Sound File and either open an existing file or create a new one. Click Record to start recording, and click it again to stop.

Programming Notes

The sample shows basic techniques of capturing sound and writing to a wave file.