Handbook
Glossary
audio-velocity ( source/listener -- velocity )
Audio playback engine
ยป
Audio source protocol
Prev:
audio-gain ( source/listener -- gain )
Next:
audio-relative? ( source -- relative? )
Vocabulary
audio
.
engine
Inputs
source/listener
an object implementing the
Audio source protocol
or
Audio listener protocol
Outputs
velocity
a 3-component float vector
Word description
Returns the velocity of an audio clip or of the listener. The relative velocity of each source to the listener is used to calculate a Doppler effect on its associated clips.
Definition
IN:
audio.engine
GENERIC:
audio-velocity
( source/listener -- velocity )
Methods
USING:
accessors
audio.engine
;
M:
audio-listener
audio-velocity
velocity>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-source
audio-velocity
velocity>>
;
inline
USING:
audio.engine
kernel
;
M:
object
audio-velocity
drop
{
0.0 0.0 0.0
}
;
inline