次の方法で共有


Batch Parameters for 3D Listeners

[The feature associated with this page, DirectSound, is a legacy feature. It has been superseded by WASAPI and Audio Graphs. Media Casting have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of DirectSound, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Applications can retrieve or set a 3D listener object's parameters individually or in batches. If the listener is moving, you might want to set multiple parameters such as position, orientation, and velocity all at once. You can do so by calling IDirectSound3DListener8::GetAllParameters to retrieve the current parameters, changing the appropriate parameters in the DS3DLISTENER structure, and passing the structure back to IDirectSound3DListener8::SetAllParameters.

Parameter changes can also be made more efficiently by flagging them as deferred and then executing them all at once. For more information, see Deferred Settings.