Microsoft DirectX 8.1 (Visual Basic)

DirectSound 3-D Buffers

Each sound source in a 3-D environment is represented by a DirectSound3DBuffer8 object. This object controls the 3-D properties of the buffer from which it is obtained. This object is obtainable only from secondary sound buffers created with the DSBCAPS_CTRL3D flag. Methods of the object are used to set and retrieve parameters of a single sound source.

Applications must supply monaural sound sources when using the 3-D capabilities of DirectSound. If you attempt to create a buffer with the DSBCAPS_CTRL3D flag set and a wave format with more than one channel, an error results.

This section describes how your applications can obtain and manage 3-D buffer objects.The following topics are discussed: