Handbook
Glossary
audio-rolloff ( source -- rolloff )
Audio playback engine
ยป
Audio source protocol
Prev:
audio-distance ( source -- distance )
Next:
audio-source
Vocabulary
audio
.
engine
Inputs
source
an object implementing the
Audio source protocol
Outputs
rolloff
a
float
Word description
Returns the rolloff factor for an audio clip. Rolloff factors greater than one will result in greater distance-based attenuation, and factors less than one will result in lesser attenuation.
Definition
IN:
audio.engine
GENERIC:
audio-rolloff
( source -- rolloff )
Methods
USING:
accessors
audio.engine
;
M:
audio-source
audio-rolloff
rolloff>>
;
inline
USING:
audio.engine
kernel
;
M:
object
audio-rolloff
drop
1.0
;
inline