DirectX SDK |
This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.
The CaptureSound program demonstrates how to use DirectSound to capture sound to a wave file.
A microphone or other audio input is required.
Source: (SDK root)\Samples\Multimedia\DSound\Src\CaptureSound
Executable: (SDK root)\Samples\Multimedia\DSound\Bin\CaptureSound.exe
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.
The sample shows basic techniques of capturing sound and writing to a wave file.