Roblox UtilitiesDevlHub Roblox Documentation

Class

AudioLimiter

Inherits
Instance › Object
Memory category
Internal

Limits how loud audio streams are allowed to be.

AudioLimiter limits how loud audio streams are allowed to be. Whenever its input stream exceeds a specified maximum level, the stream's volume is reduced for a moment. AudioLimiter provides a single Input pin, and a single Output pin that can be connected to/from by Wires.

Properties 3#

BypassbooleanWhether audio streams are passed-through unaffected by this effect.ReadSafe
MaxLevelfloatThe maximum volume tolerated.ReadSafe
ReleasefloatThe amount of time it takes for previously limited streams to return to their normal volume.ReadSafe

Bypass: boolean#

ReadSafe

If true, audio streams are passed-through unaffected by this effect.

MaxLevel: float#

ReadSafe

The maximum volume, in decibels, that the limiter will allow to pass through without reduction. Whenever the input stream exceeds MaxLevel, the output stream's volume will be reduced to compensate. This value ranges from -12 to 0.

Release: float#

ReadSafe

The amount of time, in seconds, that it takes for any previously (but not currently) limited streams to return to their normal volume. This value ranges from 0.001 to 1.

Methods 3#

GetConnectedWiresReturns an array of Wires that are connected to the specified pin.
GetInputPinsGets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.
GetOutputPinsGets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

GetConnectedWires(pin: string): List<Wire>#

Returns an array of Wires that are connected to the specified pin. AudioLimiter has one Input pin and one Output pin.

NameTypeDefaultDescription
pinstringAn input or output pin on this instance
Returns
  • List<Wire> — An array of Wires

GetInputPins(): Array#

Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.

For AudioLimiter, this is Input only.

Returns
  • Array — An array of strings representing valid pin names.

GetOutputPins(): Array#

Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

For AudioLimiter, this is Output only.

Returns
  • Array — An array of strings representing valid pin names.

Events 1#

WiringChangedFires when another instance is connected to or disconnected from the AudioLimiter via a Wire.

WiringChanged(connected: boolean, pin: string, wire: Wire, instance: Instance)#

Event that fires after a Wire becomes connected or disconnected, and that Wire is now or was previously connected to a pin on the AudioLimiter and to some other wirable instance.

NameTypeDefaultDescription
connectedbooleanWhether the instance got connected or disconnected.
pinstringThe pin on the AudioLimiter that the Wire targets.
wireWireThe Wire between the AudioLimiter and the other instance.
instanceInstanceThe other instance that is or was connected through the Wire.

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed