Class · inherits Instance
AudioDeviceOutput
Accepts audio streams to be rendered out to physical hardware devices such as speakers or headphones.
About AudioDeviceOutput
AudioDeviceOutput accepts audio streams to be rendered out to physical
hardware devices such as speakers or headphones. It provides a single
Input pin that can be targeted by Wires. Any audio streams
wired to an AudioDeviceOutput are heard.
Properties 1
Player
: PlayerAPlayerwho is intended to hear the connected audio streams.An optional
Playerwho is intended to hear the connected audio streams. If left unspecified, the streams wired to thisAudioDeviceOutputare heard by everyone.
Methods 3
GetConnectedWires
(pin: string) → List<Wire>Returns an array ofWiresthat are connected to the specified pin.Returns an array of
Wiresthat are connected to the specified pin.AudioDeviceOutputhas one "Input" pin.GetInputPins
() → ArrayGets the list of pins thatWirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.Gets the list of pins that
Wirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.For
AudioDeviceOutput, this isInputonly.GetOutputPins
() → ArrayGets the list of pins thatWirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.Gets the list of pins that
Wirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.For
AudioDeviceOutput, there are none.
Events 1
WiringChanged
AudioDeviceOutput.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioDeviceOutputvia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioDeviceOutputand to some other wirable instance.
AudioDeviceOutput also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.