Sets the directional volume cone of the Source. The cone is specified by three values: innerAngle, outerAngle, and outerVolume. If the listener is inside the innerAngle, the Source won't have its volume changed. Otherwise, the volume will start to decrease, reaching a minimum volume of outerVolume once the listener is outerAngle degrees from the direction of the Source.

Source:setCone(innerAngle, outerAngle, outerVolume)


innerAnglenumberThe inner cone angle, in radians.
outerAnglenumberThe outer cone angle, in radians.
outerVolumenumberThe outer cone angle, in radians.




The default innerAngle for a Source is 0.

The default outerAngle for a Source is 2 * math.pi.

The default outerVolume for a Source is 0.

The direction of the cone can be changed using Source:setOrientation.

See also