Difference between revisions of "DistanceModel"

m (Added newin)
(Updated for 0.10.0.)
Line 6: Line 6:
 
;none: Sources do not get attenuated.
 
;none: Sources do not get attenuated.
 
;inverse: Inverse distance attenuation.
 
;inverse: Inverse distance attenuation.
;inverse clamped: Inverse distance attenuation. Gain is clamped.
+
;inverseclamped: Inverse distance attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''inverse clamped'''.
 
;linear: Linear attenuation.
 
;linear: Linear attenuation.
;linear clamped: Linear attenuation. Gain is clamped.
+
;linearclamped: Linear attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''linear clamped'''.
 
;exponent: Exponential attenuation.
 
;exponent: Exponential attenuation.
;exponent clamped: Exponential attenuation. Gain is clamped.
+
;exponentclamped: Exponential attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''exponent clamped'''.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]

Revision as of 05:23, 5 December 2015

Available since LÖVE 0.8.0
This enum is not supported in earlier versions.

The different distance models.

Extended information can be found in the Creative documentation.

Constants

none
Sources do not get attenuated.
inverse
Inverse distance attenuation.
inverseclamped
Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named inverse clamped.
linear
Linear attenuation.
linearclamped
Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named linear clamped.
exponent
Exponential attenuation.
exponentclamped
Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named exponent clamped.

See Also


Other Languages