Platform SDK: DirectX

Tutorial 2: Loading and Playing 3-D Sounds

[C++]

This section pertains only to DirectX for Visual Basic. See DirectSound C/C++ Tutorials.

[Visual Basic]

This tutorial shows how to play a sound in three dimensions. It is based on the sample application in the \samples\Multimedia\VBSamples\DSound\src\Tutorial2 folder in the DirectX SDK installation. The user interface is similar to that in the sample used for Tutorial 1: Loading and Playing Sounds, with the addition of a picture box control that is used to display the positions of the listener and the two sounds.

The tutorial is divided into the following steps. Step 1 is identical to that in Tutorial 1.