Roblox UtilitiesDevlHub Roblox Documentation

Class

AudioDeviceOutput

Inherits
Instance › Object
Memory category
Internal

Accepts audio streams to be rendered out to physical hardware devices such as speakers or headphones.

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#

PlayerPlayerA Player who is intended to hear the connected audio streams.ReadSafe

Player: Player#

ReadSafe

An optional Player who is intended to hear the connected audio streams. If left unspecified, the streams wired to this AudioDeviceOutput are heard by everyone.

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. AudioDeviceOutput has one "Input" 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 AudioDeviceOutput, 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 AudioDeviceOutput, there are none.

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

Events 1#

WiringChangedFires when another instance is connected to or disconnected from the AudioDeviceOutput 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 AudioDeviceOutput and to some other wirable instance.

NameTypeDefaultDescription
connectedbooleanWhether the instance got connected or disconnected.
pinstringThe pin on the AudioDeviceOutput that the Wire targets.
wireWireThe Wire between the AudioDeviceOutput 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