Platform SDK: DirectX |
The DirectSound3DBuffer.GetPosition method retrieves the sound buffer's position, in distance units.
object.GetPosition(position As D3DVECTOR)
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
By default, distance units are meters, but you can change the units by using the DirectSound3DListener.SetDistanceFactor method.