Class · inherits Instance
AudioChannelMixer
Combines multiple audio streams into a single, multichannel audio stream.
About AudioChannelMixer
AudioChannelMixer mixes multiple audio streams into a single,
multichannel stream. It provides one combined Input pin, one Output
pin, as well as the following secondary input pins, all of which can be
connected to/from by Wires: Left, Right, Center,
SurroundLeft, SurroundRight, Sub, BackLeft, BackRight,
TopLeft, TopRight, TopBackLeft, and TopBackRight.
Properties 1
Layout
: AudioChannelLayoutControls the output channel layout to be mixed to.Controls the output channel layout to be mixed to. The Input pin of
AudioChannelMixeris always forwarded "as-is" to Output, but depending on the value ofLayout:- For
Mono, the Center pin consumes audio streams. - For
Stereo, the Left and Right pins consume audio streams. - For
Quad, the Left, Right, BackLeft, and BackRight pins consume audio streams. Surround_5is the same asQuad, plus Center consumes an audio stream.Surround_5_1is the same asSurround_5, plus Sub consumes an audio stream.Surround_7_1is the same asSurround_5_1, plus SurroundLeft and SurroundRight consume audio streams.- For
Surround_7_1_4, all secondary input pins consume audio streams.
- For
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. ForAudioChannelMixer, this can be one "Output" pin or a number of input pins - seeAudioChannelMixer.GetInputPinsfor a full list.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
AudioChannelMixer, these are:"Input""Left""Right""Center""SurroundLeft""SurroundRight""BackLeft""BackRight""Sub""TopLeft""TopRight""TopBackLeft""TopBackRight"
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
AudioChannelMixer, this isOutputonly.
Events 1
WiringChanged
AudioChannelMixer.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioChannelMixervia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioChannelMixerand to some other wirable instance.
AudioChannelMixer 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.