AudioListener

Show Deprecated
Not Browsable

AudioListener records an audio stream from its surrounding AudioEmitters in the 3D world. It provides a single Output pin which can be connected to other pins via Wires. If the parent is an Attachment, Camera, or PVInstance, the parent's world CFrame will be used for listening. If the parent is not one of these classes, the AudioListener effectively hears nothing.

Code Samples

Camera Listener

local listener = Instance.new("AudioListener")
local output = Instance.new("AudioDeviceOutput")
local wire = Instance.new("Wire")
listener.Parent = workspace.Camera
wire.Parent = listener
output.Parent = wire
wire.SourceInstance = listener
wire.TargetInstance = output

Properties

AudioInteractionGroup

Read Parallel

Controls which AudioEmitters are audible to this AudioListener. Emitters that share an interaction group can be heard by this Listener.

DistanceAttenuation

BinaryString
Read Parallel
Roblox Security

Methods

GetConnectedWires

Parameters

pin: string

Returns

GetDistanceAttenuation


Returns

GetInteractingEmitters


Returns

SetDistanceAttenuation

void

Parameters

curve: Dictionary

Returns

void

Events