Microsoft DirectX 8.1 (Visual Basic) |
The GetPosition method retrieves the sound buffer's position, in distance units.
Syntax
object.GetPosition(position As D3DVECTOR)
Parts
object
Resolves to a DirectSound3DBuffer8 object.
position
D3DVECTOR type that receives the position of the sound buffer.
Error Codes
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
Remarks
By default, distance units are meters, but you can change the units by using the DirectSound3DListener8.SetDistanceFactor method.