Platform SDK: DirectX |
This section pertains only to DirectX for Visual Basic. See DirectSound C/C++ Tutorials.
This tutorial demonstrates one of the most basic features of DirectSound, loading and playing a sound. This is done by loading a wave file into a buffer and playing the buffered data. The example code is based on the sample application in the \samples\Multimedia\VBSamples\DSound\src\Tutorial1 folder in the DirectX SDK installation.
This tutorial is divided into the following steps.