Handbook
Glossary
audio-position ( source/listener -- position )
Audio playback engine
ยป
Audio source protocol
Next:
audio-gain ( source/listener -- gain )
Vocabulary
audio
.
engine
Inputs
source/listener
an object implementing the
Audio source protocol
or
Audio listener protocol
Outputs
position
a 3-component float vector
Word description
Returns the position of an audio clip or of the listener. These positions determine the distance between clips and the listener, which in turn control the attenuation of the clips.
Definition
IN:
audio.engine
GENERIC:
audio-position
( source/listener -- position )
Methods
USING:
accessors
audio.engine
;
M:
audio-listener
audio-position
position>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-source
audio-position
position>>
;
inline
USING:
audio.engine
kernel
;
M:
object
audio-position
drop
{
0.0 0.0 0.0
}
;
inline
USING:
audio.engine
gpu.demos.raytrace
;
M:
sphere
audio-position
sphere-center
;
inline
USING:
accessors
audio.engine
gpu.util.wasd
;
M:
wasd-world
audio-position
location>>
;
inline