Handbook
Glossary
audio-gain ( source/listener -- gain )
Audio playback engine
ยป
Audio source protocol
Prev:
audio-position ( source/listener -- position )
Next:
audio-velocity ( source/listener -- velocity )
Vocabulary
audio
.
engine
Inputs
source/listener
an object implementing the
Audio source protocol
or
Audio listener protocol
Outputs
gain
a
float
between 0.0 and 1.0
Word description
Returns the base gain for an individual audio clip, or for the listener. A clip source's gain will be attenuated by its distance from the listener. The listener's gain will be multiplied on top of each source's gain.
Definition
IN:
audio.engine
GENERIC:
audio-gain
( source/listener -- gain )
Methods
USING:
accessors
audio.engine
;
M:
audio-listener
audio-gain
gain>>
;
inline
USING:
accessors
audio.engine
;
M:
audio-source
audio-gain
gain>>
;
inline
USING:
audio.engine
kernel
;
M:
object
audio-gain
drop
1.0
;
inline