DirectX SDK |
This section pertains only to DirectX for Visual Basic. See DirectSound C/C++ Tutorials.
This tutorial expands on the concepts of the first tutorial by adding three-dimensional (3-D) sound. This is done by loading a wave file into a DS3DBUFFER which contains all information necessary to uniquely describe the location, orientation, and motion of a 3-D sound.
This tutorial also introduces the DirectSound3DListener object which describe the 3-D world parameters and position of the listener. In the Tutorial 2 application, the user interface is identical to the Tutorial 1 with the addition of a picture box control. The picture box control is used to display the position of the listener and the positions of the two 3-D sounds. Note: The first step is identical to the Tutorial 1.