Integration with Direct3D

The IDirectSound3DBuffer and IDirectSound3DListener interfaces are designed to work together with Direct3D™. The positioning information used by Direct3D to arrange objects in a virtual environment can also be used to arrange sound sources. The D3DVECTOR and D3DVALUE types that are familiar to Direct3D programmers are also used in the IDirectSound3DBuffer and IDirectSound3DListener interfaces. The same left-handed coordinate system used by Direct3D is also employed by DirectSound. (For information about coordinate systems, see 3D Coordinate Systems, in the Direct3D overview material.)

You can use the system callback mechanism of Direct3D to simplify the implementation of 3D sound in your application. For example, you could use the D3DRMFRAMEMOVECALLBACK callback function to monitor the movement of a frame in an application and change the sonic environment only when a certain condition has been reached.