Welcome to
www.tdxlibrary.org
Home of the
t
h
e
T
D
x
_
L
i
b
r
a
r
y
...
"
R
A
D
D
i
r
e
c
t
X
"
for
C++ Builder
...
TDx_Sound_Library v2.00 Component Reference
[
TDx_Sound3DBuffer
::GetVelocity() ] [ next:
SetAllParameters()
] [ prev:
GetPosition()
]
public:
virtual bool __fastcall GetVelocity( D3DVECTOR* pVelocity );
TD
X_
S
OUND3
DB
UFFER::
G
ET
V
ELOCITY() [ component method ]
Description
The TDx_Sound3DBuffer::GetVelocity method will return the
velocity
, in
distance
units per second, currently set for this sound
buffer
.
This value is used to calculate
doppler
effects only, it is up to the application to move the buffer appropriately.
If the method call fails, the OnError event may be triggered with the following value:
TDX_BADPARAMS
DSERR_INVALIDPARAM
Parameters
Velocity
The
Velocity
parameter references a
D3DVECTOR
for holding the current velocity of the sound
buffer
if this method returns successfully.
See Also
TDx_Sound3DBuffer
TDx_Sound3DBuffer::SetVelocity()
Top
If you would like to submit additions or improvements to this page, click:
darren_john_dwyer@hotmail.com
.
Top
Welcome
|
Latest News
|
Tools
|
Demos
|
Tutorials
|
Reference
|
Register
|
Downloads
FAQ
|
Links
|
Site Information
This page is
Copyright
© 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are
Trademarks
of
Borland Corporation
.
DirectX, DirectDraw, Windows, etc are
Trademarks
of
Microsoft Corporation
.