Source:setCone

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)

Arguments

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

Returns

Nothing

Notes

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.

Make sure to set the direction of a Source before setting its cone.

See also