Microsoft DirectX 8.1 (Visual Basic) |
Every change to 3-D sound buffer and listener settings causes remixing, at the expense of CPU cycles. To minimize the performance impact of changing 3-D settings, use the DS3D_DEFERRED flag in the applyFlag parameter of any of the DirectSound3DListener8 or DirectSound3DBuffer8 methods that change 3-D settings. Then call the DirectSound3DListener8.CommitDeferredSettings method to execute all of the deferred commands at once.
Note Deferred settings are overridden by immediate settings. For example, if you set the listener velocity to (1.0, 0.0, 0.0) with the DS3D_DEFERRED flag and then set it to (2.0, 0.0, 0.0) with the DS3D_IMMEDIATE flag, the velocity becomes (2.0, 0.0, 0.0) and does not change when CommitDeferredSettings is called.