Buffer3D.Velocity Property |
Language: |
Retrieves or sets the velocity of the sound source.
Visual Basic Public Property Velocity As Vector3 C# public Vector3 Velocity { get; set; } C++ public:
property Vector3 Velocity {
Vector3 get();
void set(Vector3 value);
}JScript public function get Velocity() : Vector3
public function set Velocity(Vector3);
Microsoft.DirectX.Vector3
This property is read/write.
A Vector3 object that specifies the coordinates of the sound source's velocity vector, in meters per second by default.
Velocity is used for Doppler effects only. It does not actually move the buffer.
The default unit of measurement is meters, but this can be changed by using the Listener3D.DistanceFactor property.
Exceptions
ArgumentException An invalid parameter was passed to the called method.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center