An application can set and retrieve a sound source's position in 3-D space by using the IDirectSound3DBuffer::SetPosition and IDirectSound3DBuffer::GetPosition methods.
To set or retrieve the velocity value that DirectSound uses to calculate Doppler-shift effects for a listener, you use the IDirectSound3DBuffer::SetVelocity and IDirectSound3DBuffer::GetVelocity methods. A buffer's position is not affected by its velocity. Velocity is measured in distance units per second – by default, meters per second.
See also: