Handbook
Glossary
audio-listener
Audio playback engine
»
Audio listener protocol
Prev:
audio-orientation ( listener -- orientation )
Vocabulary
audio
.
engine
Class description
A tuple class that trivially implements the
Audio listener protocol
with accessors on its tuple slots.
•
position
provides the
audio-position
.
•
gain
provides the
audio-gain
.
•
velocity
provides the
audio-velocity
.
•
orientation
provides the
audio-orientation
.
Definition
USING:
math
;
IN:
audio.engine
TUPLE:
audio-listener
{
position
initial:
{
0.0 0.0 0.0
}
}
{
gain
float
initial:
1.0
}
{
velocity
initial:
{
0.0 0.0 0.0
}
}
{
orientation
initial:
T{
audio-orientation-state
}
}
;
Methods
USING:
accessors
audio.engine
;
M:
audio-listener
audio-gain
gain>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-listener
audio-orientation
orientation>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-listener
audio-position
position>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-listener
audio-velocity
velocity>>
;
inline