Platform SDK: DirectX

Full Duplex Sample

[C++]

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

[Visual Basic]

Description

The Full Duplex application shows how to capture and play a sound at the same time.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\DSound\Src\Fullduplex

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

User's Guide

In the Select Device dialog box, choose an input and output device. Note that in order to use your sound card for simultaneous playing and recording, you may have to change the settings in Control Panel.

In the Select Formats dialog box, select an input format. Compatible output formats are then listed. Choose one of these.

In the Full Duplex window, click Run to start capture and playback.

Programming Notes

The capture and playback buffers are the same size, so the application needs to keep only a single pointer when reading from the one and copying to the other.