Class · inherits Instance
AudioChannelSplitter
Splits an audio stream into component channels so that each can be processed independently.
About AudioChannelSplitter
AudioChannelSplitter splits an audio stream into component channels so
that each can be processed independently. It provides one Input pin, one
combined Output pin, as well as the following secondary output 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 input channel layout to be split from.Controls the input channel layout to be split from. When changed, all audio streams prior to this channel splitter's input may need to be up-mixed (widened to at least as many channels as the input requires).
The Output pin produces a copy of the stream wired to Input but, depending on the value of
AudioChannelSplitter.Layout:- For
Mono, the Center pin produces an audio stream. - For
Stereo, the Left and Right pins produce audio streams. - For
Quad, the Left, Right, BackLeft, and BackRight pins produce audio streams. Surround_5is the same asQuad, plus Center produces an audio stream.Surround_5_1is the same asSurround_5, plus Sub produces an audio stream.Surround_7_1is the same asSurround_5_1, plus SurroundLeft and SurroundRight produce audio streams.- For
Surround_7_1_4, all secondary output pins produce 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. ForAudioChannelSplitter, this can be one "Input" pin or a number of output pins - seeAudioChannelSplitter.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
AudioChannelSplitter, 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
AudioChannelSplitter, these are:"Output""Left""Right""Center""SurroundLeft""SurroundRight""BackLeft""BackRight""Sub""TopLeft""TopRight""TopBackLeft""TopBackRight"
Events 1
WiringChanged
AudioChannelSplitter.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioChannelSplittervia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioChannelSplitterand to some other wirable instance.
AudioChannelSplitter 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.